Skip to content

SidePanel

SidePanel

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

SidePanelProps

& & {...}
NameTypeDescription
durationnumber Animation display duration in ms
visibleboolean The property responsible for the visibility of the component
onClose 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

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.