import * as React from 'react'; import { Checkbox } from '@fluentui/react-next/lib/Checkbox'; import { Stack } from '@fluentui/react-next/lib/Stack'; // Used to add spacing between example checkboxes const stackTokens = { childrenGap: 10 }; export const CheckboxBasicExample: React.FunctionComponent = () => { // These checkboxes are uncontrolled because they don't set the `checked` prop. return ( ); }; function _onChange(ev: React.FormEvent, isChecked: boolean) { console.log(`The option has been changed to ${isChecked}.`); }