import classNames from 'classnames'; import { Icon } from './Icon'; import { HStack } from './Stacks'; interface Props { checked: boolean; title: string; onChange: (checked: boolean) => void; disabled?: boolean; className?: string; inputWrapperClassName?: string; indeterminate?: boolean; hideLabel?: boolean; } export function Checkbox({ checked, indeterminate, onChange, className, inputWrapperClassName, disabled, title, hideLabel, }: Props) { return (
onChange(!checked)} />
{!hideLabel && title}
); }