@cebus/react-radio
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

RadioButton

The RadioButton component allows a user to select a single option from a set.

Use

  1. Install the @cebus/react-radio component.

Using NPM

npm install @cebus/react-radio

Using Yarn

yarn add @cebus/react-radio
  1. Install the @cebus/react-provider and our theme tokens from @cebus/react-theme

  2. Set up the provider in your app:

import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Radio component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { RadioRadioGroupList, Radio } from '@cebus/react-radio'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <RadioGroup>
        <Radio value="1" label="Value 1" />
        <Radio value="2" label="Value 2" />
        <Radio value="3" label="Value 3" />
      </RadioGroup>
    <Provider>
  )
}

API

The Radio API extends off of FluentUI.

Readme

Keywords

none

Package Sidebar

Install

npm i @cebus/react-radio

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

110 kB

Total Files

154

Last publish

Collaborators

  • czearing
  • pongobuild