@vela-ui/react
Version:
Vela UI React components
20 lines (17 loc) • 1.06 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { Radio as Radio$1, RadioGroup as RadioGroup$1, ValidationResult } from 'react-aria-components';
type RadioGroupRootProps = React.ComponentProps<typeof RadioGroup$1>;
declare function RadioGroupRoot({ className, ...props }: RadioGroupRootProps): react_jsx_runtime.JSX.Element;
type RadioGroupProps = RadioGroupRootProps & {
label?: string;
description?: string;
errorMessage?: string | ((validation: ValidationResult) => string);
wrapperClassName?: string;
};
declare function RadioGroup({ wrapperClassName, children, label, description, errorMessage, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
type RadioProps = React.ComponentProps<typeof Radio$1> & {
indicatorClassName?: string;
size?: "sm" | "md" | "lg";
};
declare function Radio({ className, children, indicatorClassName, size, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
export { Radio, RadioGroup, type RadioGroupProps, RadioGroupRoot, type RadioGroupRootProps, type RadioProps };