import type { CheckboxGroupProps as ChakraCheckboxGroupProps } from '@chakra-ui/react'; import { Checkbox as ChakraCheckbox, CheckboxGroup as ChakraCheckboxGroup } from '@chakra-ui/react'; import * as React from 'react'; export interface CheckboxProps extends ChakraCheckbox.RootProps { icon?: React.ReactNode; inputProps?: React.InputHTMLAttributes; rootRef?: React.Ref; } export const Checkbox = React.forwardRef( function Checkbox(props, ref) { const { icon, children, inputProps, rootRef, ...rest } = props; return ( { icon || } { children != null && ( { children } ) } ); }, ); export interface CheckboxGroupProps extends ChakraCheckboxGroupProps { orientation?: 'vertical' | 'horizontal'; } export const CheckboxGroup = React.forwardRef( function CheckboxGroup(props, ref) { const { children, orientation = 'vertical', ...rest } = props; return ( { children } ); }, );