@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
9 lines (8 loc) • 682 B
TypeScript
import { RadioProps } from '../Radio/Radio';
import { RadioGroupProps } from './RadioGroup';
export type RadioGroupOption = Pick<RadioProps, 'label' | 'value' | 'className' | 'customArea' | 'hint' | 'isCustomAreaAbove'>;
type ValidationProps = Pick<RadioGroupProps, 'legend' | 'name' | 'options' | 'description' | 'direction' | 'id' | 'systemFeedback'>;
export declare const optionsHaveHint: (options: RadioGroupOption[]) => boolean;
export declare const optionsHaveCustomAreaInline: (options: RadioGroupOption[]) => boolean;
export declare const validateRadioGroupProps: ({ legend, name, options, description, direction, id, systemFeedback, }: ValidationProps) => void;
export {};