import * as React from 'react'; import { DefaultButton } from '@fluentui/react/lib/Button'; import { Panel } from '@fluentui/react/lib/Panel'; import { useBoolean } from '@fluentui/react-hooks'; export const PanelControlledExample: React.FunctionComponent = () => { const [isOpen, { setTrue: openPanel, setFalse: dismissPanel }] = useBoolean(false); return (
This panel can only be closed by clicking the button below.