@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
19 lines (18 loc) • 820 B
TypeScript
import * as React from 'react';
import { ColorScales } from '../../theme';
import { LiteralUnion } from '../../types';
export declare type RadioColors = ColorScales;
export declare type RadioSizes = 'xs' | 'sm' | 'md' | 'lg';
export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'width' | 'height' | 'size'> {
/** Radio label. */
label?: string;
/** If `true`, the radio will be disabled. */
isDisabled?: boolean;
/** If `true`, the radio will be marked as invalid. */
isInvalid?: boolean;
/** Color of the radio. */
color?: LiteralUnion<RadioColors>;
/** Size of the checkbox. */
size?: LiteralUnion<RadioSizes>;
}
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;