ToolsSidePanel
Examples
Check out the Usage section for details about how to design a ToolsSidePanel properly, and the different configuration options we provide.
Basic example
A ToolsSidePanel component is a wrapper that will designate which components make up a pair of panels on the right side of the window. The ToolsSidePanel takes up to two child components: ToolsSidePanelContent and ToolsSidePanelBar. The ToolsSidePanelContent component renders a wider panel that can be collapsed using a button.
In this example, the React useState hook is used to manage the collapsed state of the ToolsSidePanelContent.
const [collapsed, setCollapsed] = useState<boolean>(false);
<ToolsSidePanel onCollapsedChange={setCollapsed} collapsed={collapsed} className={styles.layoutSamples}>
    <ToolsSidePanelContent>
        <p>Sample side panel text</p>
    </ToolsSidePanelContent>
    <ToolsSidePanelBar>
        <HomeIcon/> {/* Home icon imported from '@jutro/icons' */}
    </ToolsSidePanelBar>
</ToolsSidePanel>
