SidePanel
Usage
function App() {
const [opened, setOpened] = useState(false)
return (
<Main>
<Button mode="strong" onClick={() => setOpened(true)}>
Open the panel
</Button>
<SidePanel title="Panel title" opened={opened}>
Sidepanel content goes here.
</SidePanel>
</Main>
)
}Demonstration

Props
children
childrenTYPE
DEFAULT VALUE
title
titleTYPE
DEFAULT VALUE
opened
openedTYPE
DEFAULT VALUE
onClose
onCloseTYPE
DEFAULT VALUE
blocking
blockingTYPE
DEFAULT VALUE
Related hooks
useSidePanel()
Example
useSidePanelFocusOnReady()
Last updated
Was this helpful?
