Skip to content

SidePanel

SidePanel

jsx
import SidePanel from '@semcore/ui/side-panel';
<SidePanel />;

NSSidePanel.Props

& & {...}
NameTypeDescription
durationnumber Animation display duration in ms
visibleboolean The property responsible for the visibility of the component
onClose(trigger: "onOutsideClick" | "onEscape" | "onCloseClick", e: | ) => void Callback for the component closure
closableboolean Property for displaying the close button
placement Position of a dropdown window
disablePreventScrollboolean Setting `true` disables mechanism that hides document body scrollbar when SidePanel is visible
animationsDisabledbooleanDeprecated Disable animation

SidePanel.Overlay

jsx
import SidePanel from '@semcore/ui/side-panel';
<SidePanel.Overlay />;

This is a wrap over the Box component.

SidePanel.Panel

jsx
import SidePanel from '@semcore/ui/side-panel';
<SidePanel.Panel />;

This is a wrap over Box and FocusLock.

NSSidePanel.Panel.Props

& & {...}
NameTypeDescription
onOutsideClick(e: ) => void Callback that is triggered when click outside is occured
forcedAdvancedModebooleanDeprecated Forces advanced mode

SidePanel.Close

jsx
import SidePanel from '@semcore/ui/side-panel';
<SidePanel.Close />;

This is a wrap over the Box component.

Released under the MIT License.

Released under the MIT License.