UNPKG

react-wired-elements

Version:

Wired Elements as React components. TypeScript types included.

33 lines (32 loc) 917 B
import * as React from 'react'; import { BaseProps } from './types'; export interface WiredRadioProps extends BaseProps { /** * Check state of the radio button. * @default false */ checked?: boolean; /** * Disable the radio button. * @default false */ disabled?: boolean; /** * A name associated with the radio inside a radio-group. */ name?: string; /** * Color of the label. * @default currentColor */ color?: string; /** * Event fired when state of the radio changes, i.e. the user checks/unchecks the radio. */ onChange?(e: CustomEvent): void; /** * The children- Use for the label. */ children?: React.ReactNode; } export declare const WiredRadio: ({ checked, disabled, name, color, onChange, children, className, style, }: WiredRadioProps) => JSX.Element;