JSPM

@chakra-ui/radio

0.0.0-pr-2022014102532
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 355961
  • Score
    100M100P100Q183440F
  • License MIT

A React component to render custom Radio input types

Package Exports

  • @chakra-ui/radio
  • @chakra-ui/radio/dist/chakra-ui-radio.cjs.js
  • @chakra-ui/radio/dist/chakra-ui-radio.esm.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chakra-ui/radio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Radio

Radio component is used in forms when a user needs to select a single value from several options.

Installation

yarn add @chakra-ui/radio

# or

npm i @chakra-ui/radio

Import component

import { Radio } from "@chakra-ui/radio"

Usage

<Radio>This is a radio</Radio>

RadioGroup

RadioGroup is used to bind multiple radios into a group, and it indicates whether which option is selected.

<RadioGroup defaultValue="one">
  <Radio value="one">One</Radio>
  <Radio value="two">Two</Radio>
  <Radio value="three">Three</Radio>
</RadioGroup>