UNPKG

@radix-ui/themes

Version:

[![Radix Themes Logo](https://radix-ui.com/social/themes.png)](https://radix-ui.com/themes)

12 lines (11 loc) 690 B
import * as React from 'react'; import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { checkboxPropDefs } from './checkbox.props.js'; import type { ComponentPropsWithout } from '../helpers/index.js'; import type { GetPropDefTypes, MarginProps } from '../props/index.js'; type CheckboxOwnProps = GetPropDefTypes<typeof checkboxPropDefs>; interface CheckboxProps extends ComponentPropsWithout<typeof CheckboxPrimitive.Root, 'asChild' | 'color' | 'defaultValue' | 'children'>, MarginProps, CheckboxOwnProps { } declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>; export { Checkbox }; export type { CheckboxProps };