import React, { useId, type HTMLAttributes } from 'react'
import classnames from 'classnames'
import { Label } from '~components/Label'
import { type OverrideClassName } from '~components/types/OverrideClassName'
import styles from './CheckboxGroup.module.scss'
export type CheckboxGroupProps = {
children?: React.ReactNode
labelText: string | React.ReactNode
labelId?: string
noBottomMargin?: boolean
reversed?: boolean
} & OverrideClassName>
/**
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094522/Checkbox+Group Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-checkbox-controls-checkbox-group--docs Storybook}
*/
export const CheckboxGroup = ({
children,
labelText,
labelId: propsLabelId,
noBottomMargin = false,
reversed = false,
classNameOverride,
...restProps
}: CheckboxGroupProps): JSX.Element => {
const fallbackId = useId()
const labelId = propsLabelId ?? fallbackId
return (
)
}
CheckboxGroup.displayName = 'CheckboxGroup'