dgz-ui
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript
16 lines • 826 B
TypeScript
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
import * as React from 'react';
/**
* Props for the Checkbox component. Extends Radix Checkbox Root props.
* @property {boolean | 'indeterminate'} [checked] - The checked state of the checkbox.
* @property {boolean} [disabled] - If true, the checkbox will be disabled.
*/
export type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
/**
* Checkbox - An accessible checkbox with indeterminate state support.
* @returns {JSX.Element} The rendered Checkbox component.
* @component
*/
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
export { Checkbox };
//# sourceMappingURL=checkbox.d.ts.map