import { RadioGroupProps } from "./RadioGroup.cjs"; import { ReactNode, Ref } from "react"; import RAC from "react-aria-components"; type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled'; export interface RadioProps extends Omit { /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: string; /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: string; /** * Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width * * Numeric/scale values are spacing-scale tokens, not pixels: `width={64}` * resolves to `calc(var(--spacing) * 64)` ~= 16rem (256px), not 64px. * @default full */ width?: string; /** Children of the component. */ children?: ReactNode; /** * Content on the label's first line, such as a `` or ``. * Keeps the radio centred, and a badge is read as the radio's description. */ addon?: ReactNode; /** * Set the radio disabled. * @default false */ disabled?: RAC.RadioFieldProps['isDisabled']; /** Ref to the DOM element the component renders. */ ref?: Ref; } declare const Radio: (({ value, disabled, width, children, addon, variant: variantProp, size: sizeProp, ref, ...props }: RadioProps) => import("react").JSX.Element) & { Group: ({ variant, size, label, addon, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, collapseAt, ...rest }: RadioGroupProps) => import("react").JSX.Element; }; export { Radio };