mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 07:09:02 +02:00
452d854d5b
Unified access onboarding data collection pages GitOrigin-RevId: c56a3d52f749883eeb2302e22aaf6bdf1239160c
28 lines
509 B
TypeScript
28 lines
509 B
TypeScript
import { Form, FormCheckProps } from 'react-bootstrap'
|
|
import classNames from 'classnames'
|
|
|
|
type DSFormCheckboxProps = Pick<
|
|
FormCheckProps,
|
|
| 'disabled'
|
|
| 'checked'
|
|
| 'onChange'
|
|
| 'label'
|
|
| 'name'
|
|
| 'value'
|
|
| 'id'
|
|
| 'className'
|
|
>
|
|
|
|
function DSFormCheckbox(props: DSFormCheckboxProps) {
|
|
const { className, ...rest } = props
|
|
return (
|
|
<Form.Check
|
|
type="checkbox"
|
|
className={classNames('form-check-ds', className)}
|
|
{...rest}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default DSFormCheckbox
|