Skip to content

SidePanel

SidePanel

jsx
import SidePanel from 'intergalactic/side-panel';
<SidePanel />;
import SidePanel from 'intergalactic/side-panel';
<SidePanel />;

SidePanelProps

& & {...}
NameTypeDescription
durationnumberAnimation display duration in ms
visiblebooleanThe property responsible for the visibility of the component
onCloseCallback for the component closure
closablebooleanProperty for displaying the close button
placementPosition of a dropdown window
disablePreventScrollbooleanSetting `true` disables mechanism that hides document body scrollbar when SidePanel is visible

SidePanel.Overlay

jsx
import SidePanel from 'intergalactic/side-panel';
<SidePanel.Overlay />;
import SidePanel from 'intergalactic/side-panel';
<SidePanel.Overlay />;

This is a wrap over the Box component.

SidePanel.Panel

jsx
import SidePanel from 'intergalactic/side-panel';
<SidePanel.Panel />;
import SidePanel from 'intergalactic/side-panel';
<SidePanel.Panel />;

This is a wrap over the Box and FocusLock.

SidePanelPanelProps

& & {...}
NameTypeDescription
onOutsideClick(e: React.SyntheticEvent) => void

SidePanel.Close

jsx
import SidePanel from 'intergalactic/side-panel';
<SidePanel.Close />;
import SidePanel from 'intergalactic/side-panel';
<SidePanel.Close />;

This is a wrap over the Box component.

Released under the MIT License.

Released under the MIT License.