UNPKG

infinity-ui-elements

Version:

A React TypeScript component library with Tailwind CSS design system

45 lines 1.44 kB
import * as React from "react"; declare const radioVariants: (props?: ({ size?: "medium" | "large" | "small" | null | undefined; validationState?: "none" | "error" | null | undefined; isChecked?: boolean | null | undefined; isDisabled?: boolean | null | undefined; isFocused?: boolean | null | undefined; } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string; export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> { /** * Label text to display next to the radio button */ label?: string; /** * Error text to display below the radio button */ errorText?: string; /** * Size of the radio button */ size?: "small" | "medium" | "large"; /** * Validation state of the radio button */ validationState?: "none" | "error"; /** * Whether the radio button is disabled */ isDisabled?: boolean; /** * Whether to show error text (defaults to true if errorText is provided) */ showErrorText?: boolean; /** * Custom class name for the container */ containerClassName?: string; /** * Custom class name for the label */ labelClassName?: string; } declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>; export { Radio, radioVariants }; //# sourceMappingURL=Radio.d.ts.map