@hakuna-matata-ui/radio

A React component to render custom Radio input types

Usage no npm install needed!

<script type="module">
  import hakunaMatataUiRadio from 'https://cdn.skypack.dev/@hakuna-matata-ui/radio';
</script>

README

Radio

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

Installation

yarn add @hakuna-matata-ui/radio

# or

npm i @hakuna-matata-ui/radio

Import component

import { Radio } from "@hakuna-matata-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>