liber-salti
Version:
Saltí - Liber Design System
32 lines (31 loc) • 718 B
TypeScript
/// <reference types="react" />
export interface RadioProps {
/**
* If `true`, the component is disabled.
*/
disabled?: boolean;
/**
* If `true`, the component is checked.
*/
checked?: boolean;
/**
* If `true`, the input element is required.
*/
required?: boolean;
/**
* The value of the component.
*/
value?: string | number;
/**
* The label of the component.
*/
label?: string;
/**
* The size of the component.
*/
size?: 'small' | 'medium';
/**
* Callback fired when the state is changed.
*/
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
}