Sidebar
component by default appears on left side of the screen as fixed positioned element.
In most cases it should be used with <Backdrop>
component to provide 'click outside' functionality
as well as with <Portal>
so it gets rendered outside of the DOM hierarchy of the parent component.
Property | Type | Required | Default | Description |
---|---|---|---|---|
visible | boolean | 🗸 | false | if true sidebar is visible |
side | "left" | "right" | 🗸 | "left" | side of the viewport where sidebar should appear |
Sidebar
component accepts also all of the responsive, theme-based style props.