# @types/react-radio-group

> TypeScript definitions for react-radio-group

Latest version **3.0.7** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.7 |
| Published | 2023-11-07 |
| First published | 2018-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51425 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-radio-group
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-radio-group
- npm.io page: https://npm.io/package/@types/react-radio-group

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 3.0.7 (latest) — 2023-11-07
- 3.0.4 (ts3.7) — 2021-10-21
- 3.0.3 (ts3.6) — 2021-07-08
- 3.0.2 (ts2.8) — 2018-08-06
- 3.0.1 (ts2.6) — 2018-05-27
- 3.0.6 — 2023-10-18
- 3.0.5 — 2023-09-27
- 3.0.0 — 2018-05-15

## README

# Installation
> `npm install --save @types/react-radio-group`

# Summary
This package contains type definitions for react-radio-group (https://github.com/chenglou/react-radio-group).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-radio-group.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-radio-group/index.d.ts)
````ts
import * as React from "react";

// Omit taken from https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-311923766
export type Omit<T, K extends keyof T> = Pick<
    T,
    ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never; [x: number]: never })[keyof T]
>;

export namespace Radio {
    type RadioProps =
        & Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "name" | "role" | "type" | "aria-checked">
        & {
            value: any;
        };
}
export const Radio: React.ComponentClass<Radio.RadioProps>;

export namespace RadioGroup {
    type RadioGroupProps = Omit<React.HTMLProps<any>, "onChange"> & {
        selectedValue?: any;
        onChange?: ((value: any) => void) | undefined;
        Component?: React.ElementType<Omit<React.HTMLProps<any>, "onChange" | "role">> | undefined;
    };
}
export const RadioGroup: React.ComponentClass<RadioGroup.RadioGroupProps>;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Jason Unger](https://github.com/jsonunger).

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