UNPKG

norma-library

Version:

Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.

24 lines (22 loc) 792 B
import { ReactNode } from 'react'; import { CheckBoxColorVariant, DirectionVariant, MuiRadioBaseProps, OptionsRadios, TextFieldSizeVariant, } from '../types'; import { CheckboxPropsColorOverrides, RadioPropsSizeOverrides } from '@mui/material'; import { OverridableStringUnion } from '@mui/types'; export interface RadioBaseProps extends Omit<MuiRadioBaseProps, 'onChange'> { id?: string; name?: string; options?: OptionsRadios[]; required?: boolean; direction?: DirectionVariant; label?: ReactNode; size?: OverridableStringUnion<TextFieldSizeVariant, RadioPropsSizeOverrides>; color?: OverridableStringUnion<CheckBoxColorVariant, CheckboxPropsColorOverrides>; checked?: string; onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void; }