welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
18 lines (17 loc) • 672 B
TypeScript
import { default as React } from 'react';
import { FieldGroupOptions } from '../FieldGroup';
import { CreateWuiProps } from '../System';
export type RadioGroupOption = {
hint?: string;
label: number | string;
value: number | string;
};
export interface RadioGroupOptions {
name: string;
onChange?: (value: RadioGroupOption['value']) => void;
options: RadioGroupOption[];
renderOption?: React.ElementType;
value?: string;
}
export type RadioGroupProps = CreateWuiProps<'fieldset', Omit<FieldGroupOptions, 'children'> & RadioGroupOptions>;
export declare const RadioGroup: import('../System').CreateWuiComponent<"fieldset", RadioGroupProps>;