# @cebus/react-radio

> A radio button component that allows a user to select a single option from a set.

Latest version **0.0.1** (published 2022-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cebus/react-radio
pnpm add @cebus/react-radio
yarn add @cebus/react-radio
bun add @cebus/react-radio
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-04-14 |
| First published | 2022-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 107.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | czearing, pongobuild |

## Links

- npm: https://www.npmjs.com/package/@cebus/react-radio
- Repository: https://github.com/cebus-org/cebus
- Homepage: https://github.com/cebus-org/cebus#readme
- Issues: https://github.com/cebus-org/cebus/issues
- npm.io page: https://npm.io/package/@cebus/react-radio

## Dependencies (4)

- [@griffel/react](https://npm.io/package/@griffel/react.md) ^1.0.0
- [@cebus/react-theme](https://npm.io/package/@cebus/react-theme.md) ^0.0.1
- [@fluentui/react-radio](https://npm.io/package/@fluentui/react-radio.md) ^9.0.0-beta.2
- [@fluentui/react-utilities](https://npm.io/package/@fluentui/react-utilities.md) ^9.0.0-rc.5

## Recent versions

- 0.0.1 (latest) — 2022-04-14

## README

# 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
```

2. Install the @cebus/react-provider and our theme tokens from @cebus/react-theme

3. Set up the provider in your app:

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

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
```

4. Integrate the Radio component.

```jsx
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.

---
_Source: https://npm.io/package/@cebus/react-radio · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
