UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

39 lines 1.15 kB
import * as React from 'react'; import { Themeable } from '@workday/canvas-kit-react/common'; export interface RadioProps extends Themeable { /** * If true, set the Radio button to the checked state. * @default false */ checked?: boolean; /** * If true, set the Radio button to the disabled state. * @default false */ disabled?: boolean; /** * The HTML `id` of the underlying radio input element. This is required if `label` is defined as a non-empty string. * @default A uniquely generated id */ id?: string; /** * The text of the Radio button label. * @default '' */ label?: string; /** * The name of the Radio button. */ name?: string; /** * The function called when the Radio button state changes. */ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void; /** * The value of the Radio button. */ value?: string; variant?: 'inverse' | undefined; } export declare const Radio: import("@workday/canvas-kit-react/common").ElementComponent<"input", RadioProps>; //# sourceMappingURL=Radio.d.ts.map