welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
12 lines (11 loc) • 393 B
TypeScript
import { ComponentPropsWithRef } from 'react';
import { LabelProps } from '../Label/types';
export interface RadioOptions {
dataTestId?: string;
hint?: string;
label?: string;
maxWidth?: number | string;
value?: string;
variant?: 'danger' | 'default' | 'warning';
}
export type RadioProps = ComponentPropsWithRef<'input'> & Omit<LabelProps, 'children'> & RadioOptions;