UNPKG

@uva-glass/component-library

Version:

React components UvA

20 lines (19 loc) 637 B
type Option = { id: string; titleLabel: string; descriptionLabel?: string; value: string; }; export interface RadioGroupProps { /** The label of the radio group */ label: string; /** Radio options. */ options: Option[]; /** Returns selected values as string */ onChange: (value: string) => void; /** If true, the whole group will be disabled. */ disabled?: boolean; } /** Represents a component for dispalying grouped styled radio buttons. */ export declare const RadioGroup: ({ label, options, onChange, disabled }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element; export {};