@trail-ui/react
Version:
26 lines (23 loc) • 985 B
TypeScript
import * as react from 'react';
import { ReactNode } from 'react';
import { CheckboxVariantProps, SlotsToClasses, CheckboxSlots } from '@trail-ui/theme';
import { CheckboxProps as CheckboxProps$1 } from 'react-aria-components';
import { CheckboxIconProps } from './checkbox-icon.js';
import 'react/jsx-runtime';
interface CheckboxProps extends CheckboxProps$1, CheckboxVariantProps {
/**
* The icon to be displayed when the checkbox is checked.
*/
icon?: ReactNode | ((props: CheckboxIconProps) => ReactNode);
/**
* Classes object to style the checkbox and its children.
*/
classNames?: SlotsToClasses<CheckboxSlots>;
className?: string;
}
/**
* A checkbox allows a user to select multiple items from a list of individual items, or
* to mark one individual item as selected.
*/
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLLabelElement>>;
export { _Checkbox as Checkbox, CheckboxProps };