import { WidthProp } from "@marigold/system"; import { ReactNode } from "react"; import RAC from "react-aria-components"; type RemovedProps = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected'; export interface RadioGroupProps 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; /** * Set the label of the radio group. * @default none */ label?: ReactNode; /** * Content after the label, such as a `` or ``. Keeps * the label row's height, and a badge is read as the field's description. */ addon?: ReactNode; /** * Set the radio group help text. * @default none */ description?: string; /** * Set the radio group error message if an error occurs. * @default none */ errorMessage?: string; /** * The children elements of the radio group. */ children?: ReactNode[]; /** * Control the width of the field. * @default 100% */ width?: WidthProp['width']; /** * If `true`, the radio group is considered invalid and if set the `errorMessage` is shown. * @default false */ error?: RAC.RadioGroupProps['isInvalid']; /** * If `true`, the radio group is required. * @default false */ required?: RAC.RadioGroupProps['isRequired']; /** * If `true`, the radio group is disabled. * @default false */ disabled?: RAC.RadioGroupProps['isDisabled']; /** * Set the radio group as read-only. * @default false */ readOnly?: boolean; /** * The selected value of the radio group. */ value?: string; /** * Set the radio group direction. * @default vertical */ orientation?: 'horizontal' | 'vertical'; /** * The number of items to display before collapsing the rest. * Items beyond this number will be hidden until the user clicks * the "Show more" control. * * @default undefined */ collapseAt?: number; } declare const RadioGroup: ({ variant, size, label, addon, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, collapseAt, ...rest }: RadioGroupProps) => import("react").JSX.Element; export { RadioGroup };