@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
36 lines (32 loc) • 1.02 kB
TypeScript
import { RadioGroupProps, RadioGroupItemProps } from '@radix-ui/react-radio-group';
import { ReactNode } from 'react';
declare enum Variants {
Primary = "primary",
Secondary = "secondary",
Tertiary = "tertiary"
}
declare const DEFAULT_VARIANT = Variants.Primary;
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?: ReactNode;
labelElement?: keyof HTMLElementTagNameMap;
}
export { DEFAULT_VARIANT as D, type InputRadioGroupProps as I, Variants as V, type InputRadioProps as a };