import * as React from 'react'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; import { Panel } from 'office-ui-fabric-react/lib/Panel'; import { useConstCallback } from '@uifabric/react-hooks'; const explanation = "This panel is non-modal: even when it's open, it allows interacting with content outside the panel."; export const PanelNonModalExample: React.FunctionComponent = () => { const [isOpen, setIsOpen] = React.useState(false); const openPanel = useConstCallback(() => setIsOpen(true)); const dismissPanel = useConstCallback(() => setIsOpen(false)); return (
{explanation}

{explanation}

); };