Private
Public Access
1
0
Files

17 lines
784 B
JavaScript

'use client';
import * as React from 'react';
import { useCheckbox_unstable } from './useCheckbox';
import { renderCheckbox_unstable } from './renderCheckbox';
import { useCheckboxStyles_unstable } from './useCheckboxStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Checkboxes give people a way to select one or more items from a group,
* or switch between two mutually exclusive options (checked or unchecked).
*/ export const Checkbox = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useCheckbox_unstable(props, ref);
useCheckboxStyles_unstable(state);
useCustomStyleHook_unstable('useCheckboxStyles_unstable')(state);
return renderCheckbox_unstable(state);
});
Checkbox.displayName = 'Checkbox';