import React, { useId } from 'react' import classnames from 'classnames' import { Label } from '~components/Label' import { Checkbox, type CheckboxProps, type CheckedStatus } from '../Checkbox/Checkbox' import styles from './CheckboxField.module.scss' export type CheckboxFieldProps = Omit & { 'id'?: string 'labelText': string | React.ReactNode 'checkedStatus'?: CheckedStatus 'disabled'?: boolean 'reversed'?: boolean 'noBottomMargin'?: boolean 'data-testid'?: string } /** * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094661/Checkbox+Field Guidance} | * {@link https://cultureamp.design/?path=/docs/components-checkobx-controls-checkbox-field--docs Storybook} */ export const CheckboxField = ({ 'id': propsId, labelText, checkedStatus, disabled = false, reversed = false, noBottomMargin = false, 'data-testid': dataTestId, classNameOverride, ...restProps }: CheckboxFieldProps): JSX.Element => { const fallbackId = useId() const id = propsId ?? fallbackId return (
) } CheckboxField.displayName = 'CheckboxField'