@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
30 lines (27 loc) • 842 B
TypeScript
import { RadioGroupProps, RadioGroupItemProps } from '@radix-ui/react-radio-group';
import { ReactNode } from 'react';
import { Variants } from './InputRadio.constants.js';
interface InputRadioGroupProps extends RadioGroupProps {
children: ReactNode;
condensed?: boolean;
defaultValue?: string;
disabled?: boolean;
fullWidth?: boolean;
name?: string;
orientation?: RadioGroupProps['orientation'];
required?: boolean;
value?: string;
variant?: `${Variants}`;
onValueChange?: (value: string) => void;
}
interface InputRadioProps extends RadioGroupItemProps {
value: string;
children?: ReactNode;
condensed?: boolean;
disabled?: boolean;
fullWidth?: boolean;
id?: string;
label?: string;
labelAsDiv?: boolean;
}
export type { InputRadioGroupProps, InputRadioProps };