@furystack/shades-common-components
Version:
Common UI components for FuryStack Shades
38 lines • 1.11 kB
TypeScript
import type { ChildrenList } from '@furystack/shades';
import type { Palette } from '../../services/theme-provider-service.js';
export type RadioGroupProps = {
/**
* The name attribute shared by all radio buttons in the group
*/
name: string;
/**
* The currently selected value
*/
value?: string;
/**
* The default selected value (used for uncontrolled mode)
*/
defaultValue?: string;
/**
* Whether all radio buttons in the group are disabled
*/
disabled?: boolean;
/**
* Callback when the selected value changes
*/
onValueChange?: (value: string) => void;
/**
* The palette color applied to all radio buttons in the group
*/
color?: keyof Palette;
/**
* Label text or element displayed above the group
*/
labelTitle?: JSX.Element | string;
/**
* Layout direction of the radio buttons
*/
orientation?: 'horizontal' | 'vertical';
};
export declare const RadioGroup: (props: RadioGroupProps, children: ChildrenList) => JSX.Element;
//# sourceMappingURL=radio-group.d.ts.map