import { OmitInternalProps } from '../../type-utils/omit-props'; import { HTMLChakraProps, SlotRecipeProps, UnstyledProp } from '@chakra-ui/react/styled-system'; import { ReactNode, Ref } from 'react'; import { CheckboxProps as RaCheckboxProps } from 'react-aria-components'; type CheckboxRecipeProps = { /** * Size variant of the checkbox * @default "md" */ size?: SlotRecipeProps<"nimbusCheckbox">["size"]; } & UnstyledProp; export type CheckboxRootSlotProps = Omit, keyof RaCheckboxProps> & RaCheckboxProps; export type CheckboxLabelSlotProps = HTMLChakraProps<"span">; export type CheckboxIndicatorSlotProps = HTMLChakraProps<"span">; export type CheckboxProps = OmitInternalProps & { /** * Ref forwarding to the label element */ ref?: Ref; /** * The label content to display next to the checkbox */ children?: ReactNode; }; export {};