import { CheckboxGroupProps } from "./CheckboxGroup.cjs"; import { ReactNode, Ref } from "react"; import RAC from "react-aria-components"; export type RemovedProps = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected'; export interface CheckboxProps 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; /** * Whether the element should be checked (controlled). */ checked?: boolean | undefined; /** * Whether the element should be checked (uncontrolled). */ defaultChecked?: boolean | undefined; /** * Whether the checkbox is disabled. * @default false */ disabled?: boolean; /** * Whether the checkbox is required. * @default false */ required?: boolean; /** * Whether the checkbox is read-only. * @default false */ readOnly?: boolean; /** * Use when it represents both selected and not selected values. * @default false */ indeterminate?: boolean; /** * If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`. * @default false */ error?: RAC.CheckboxFieldProps['isInvalid']; /** * An error message shown when `error` is set. */ errorMessage?: ReactNode; /** * Set the label of the checkbox. * @default none * */ label?: ReactNode; /** * Content on the label's first line, such as a `` or ``. * Keeps the checkbox centred, and a badge is read as the checkbox's description. */ addon?: ReactNode; /** * A helpful text. */ description?: ReactNode; /** Ref to the DOM element the component renders. */ ref?: Ref; } declare const Checkbox: (({ error, errorMessage, disabled, readOnly, required, checked, defaultChecked, indeterminate, variant, size, label, addon, description, ref, ...rest }: CheckboxProps) => import("react").JSX.Element) & { Group: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, collapseAt, ...rest }: CheckboxGroupProps) => import("react").JSX.Element; }; export { Checkbox };