UNPKG

@spaced-out/ui-design-system

Version:
28 lines 850 B
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { GroupAlign } from '../../types/common'; /** * Note: * Do not wrap Radio in a label. For simplicity's sake, Radio uses an * internal label tag to handle click delegation to the hidden input, and * nesting labels is a bad idea. */ type ClassNames = Readonly<{ wrapper?: string; radioGroup?: string; errorText?: string; }>; export interface RadioGroupProps { align?: GroupAlign; name: string; value?: string; onChange?: (value: string) => unknown; children?: React.ReactNode; classNames?: ClassNames; error?: boolean; errorText?: string; testId?: string; } export declare const RadioGroup: Flow.AbstractComponent<RadioGroupProps, HTMLDivElement>; export {}; //# sourceMappingURL=RadioGroup.d.ts.map