# @crave/farmblocks-input-radio

> Radio form element.

Latest version **3.6.8** (published 2022-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @crave/farmblocks-input-radio
pnpm add @crave/farmblocks-input-radio
yarn add @crave/farmblocks-input-radio
bun add @crave/farmblocks-input-radio
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.6.8 |
| Published | 2022-01-05 |
| First published | 2018-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Crave Food Systems and AUTHORS |
| Maintainers | viniciusmartin, luis.nascimento, seocam, vnakamura, alcferreira, imwra |
| Keywords | radio, form, input |

## Links

- npm: https://www.npmjs.com/package/@crave/farmblocks-input-radio
- Repository: https://github.com/CraveFood/farmblocks
- Homepage: https://github.com/CraveFood/farmblocks#readme
- Issues: https://github.com/CraveFood/farmblocks/issues
- npm.io page: https://npm.io/package/@crave/farmblocks-input-radio

## Dependencies (2)

- [@crave/farmblocks-text](https://npm.io/package/@crave/farmblocks-text.md) ^3.6.11
- [@crave/farmblocks-theme](https://npm.io/package/@crave/farmblocks-theme.md) ^1.12.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.6.8 (latest) — 2022-01-05
- 3.6.7-alpha-adjust-xsmall-font-size-value-6142.1.0 (canary) — 2021-08-11
- 3.6.7 — 2021-08-11
- 3.6.7-alpha-lerna-force-publish-6137.1.0 — 2021-07-26
- 3.6.4 — 2021-07-23
- 3.6.3 — 2021-07-07
- 3.6.3-alpha-add-font-size-6125.1.10 — 2021-07-07
- 3.6.2 — 2021-04-19
- 3.6.2-alpha-update-deps-032021-6038.1.39 — 2021-04-09
- 3.6.1 — 2021-02-11
- 3.6.1-alpha-fix-empty-state-proptype-5981.1.3 — 2021-02-11
- 3.6.0 — 2021-02-10
- 3.5.9-alpha-modal-adjusts-5974.1.22 — 2021-02-09
- 3.5.9-alpha-modal-adjusts-5973.1.23 — 2021-02-09
- 3.5.9-alpha-table-redesign-manual-1.11 — 2021-01-21
- … 756 more at https://npm.io/package/@crave/farmblocks-input-radio/versions

## README

![logo-farmblocks](https://user-images.githubusercontent.com/7760/31051341-4d280118-a63c-11e7-9e8f-3b375ca8f9a0.png)

# Farmblocks Radio

Radio form element. See
[Storybook](https://cravefood.github.io/farmblocks/index.html?selectedKind=Radio)

## Installation

```
npm install @crave/farmblocks-input-radio
```

## Usage

```jsx
import React from "react";
import ReactDOM from "react-dom";
import Radio, { RadioGroup } from "@crave/farmblocks-map-balloon";

const root = document.createElement("div");

ReactDOM.render(
  <div>
    <RadioGroup name="radioExample" defaultValue="second">
      <Radio value="first" label="First" />
      <Radio value="second" label="Second (default)" />
      <Radio value="third" label="Third (disabled)" disabled />
    </RadioGroup>
  </div>,
  root,
);

document.body.appendChild(root);
```

## API

### Radio

- `label`: node
- `name`: string
- `checked`: boolean
- `disabled`: boolean
- `onClick`: function
- `onChange`: function
- `value`: any

### RadioGroup

- `defaultValue`: any. If set, the radio option with this value will be
  automatically checked.
- `name`: string. Will be given to all the children.
- `disabled`: boolean. If set, all the children will be disabled.
- `onChange`: function

## License

MIT

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