# my-radio

> A radio component for react

Latest version **0.1.0** (published 2020-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install my-radio
pnpm add my-radio
yarn add my-radio
bun add my-radio
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-05-10 |
| First published | 2020-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | saahithyan |
| Maintainers | saahithyan |

## Links

- npm: https://www.npmjs.com/package/my-radio
- Repository: https://github.com/saahithyan/my-radio
- Homepage: https://github.com/saahithyan/my-radio#readme
- Issues: https://github.com/saahithyan/my-radio/issues
- npm.io page: https://npm.io/package/my-radio

## Recent versions

- 0.1.0 (latest) — 2020-05-10

## README

# my-radio

> A radio component for react

[![NPM](https://img.shields.io/npm/v/my-radio.svg)](https://www.npmjs.com/package/my-radio) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save my-radio
```

## Usage

```jsx
import React, { Component } from 'react'

import MyRadio from 'my-radio'

class App extends Component {
    state = {
        items: [
            { txt: 'item 1', checked: false },
            { txt: 'item 2', checked: false },
            { txt: 'item 3', checked: true }
        ]
    }

    handler (refer, items) {
        this.setState({ items })
    }

    render () {
        const { items } = this.state

        return (
            <MyRadio
                refer='myRadio'
                heading='My Radio Buttons'
                handler={this.handler.bind(this)}
                items={items}
            />
        )
    }

}

export default App
```

## License

MIT © [saahithyan](https://github.com/saahithyan)

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