'use client'; import * as React from 'react'; import { Checkbox as CheckboxPrimitive, type CheckboxProps as CheckboxPrimitiveProps, } from '@headlessui/react'; import { motion, type HTMLMotionProps } from 'motion/react'; import { cn } from '@workspace/ui/lib/utils'; type CheckboxProps = CheckboxPrimitiveProps & Omit< HTMLMotionProps<'button'>, 'checked' | 'onChange' | 'defaultChecked' | 'children' > & { as?: TTag; }; function Checkbox( props: CheckboxProps, ) { const { className, as = motion.button, ...rest } = props; return ( {({ checked }) => ( )} ); } export { Checkbox, type CheckboxProps };