UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

45 lines 1.62 kB
import * as React from 'react'; import { Themeable } from '@workday/canvas-kit-react/common'; /** * @deprecated ⚠️ `RadioProps` in Main has been deprecated and will be removed in a future major version. Please use [`Radio` in Preview](https://workday.github.io/canvas-kit/?path=/docs/preview-inputs-radio--docs) instead. */ 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; } /** * @deprecated ⚠️ `Radio` in Main has been deprecated and will be removed in a future major version. Please use [`Radio` in Preview](https://workday.github.io/canvas-kit/?path=/docs/preview-inputs-radio--docs) instead. */ export declare const Radio: import("@workday/canvas-kit-react/common").ElementComponent<"input", RadioProps>; //# sourceMappingURL=Radio.d.ts.map