ZeroGravity UI

Mediastable

Folio

Expanding panels

A strip of panels where the hovered or focused one opens wide, without ever resizing a panel.

Customize

Strippanels keep their size; they only move
variant
420 pxheight
12 pxgap
3.00grow
Motiontranslate and clip, never width
650 msduration
disabled

Usage

TSX
import { Folio } from "zerogravity/folio"

<Folio>
    <FolioPanel label="Harbour" media={<img src="/harbour.jpg" alt="" />} />
    <FolioPanel label="Field" media={<img src="/field.jpg" alt="" />} />
</Folio>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

13 documented props on Folio
PropertyTypeDefaultDescription
variant"pixel" | "classic" | "minimal" | "glass""pixel"Style.
heightnumber420Height. Range 240 to 600 px.
gapnumber12Gap. Range 0 to 32 px.
grownumber3Open width. Range 1.5 to 6.
durationnumber650Duration. Range 150 to 1500 ms.
disabledbooleanfalseHold the open panel.
radiusnumber4 in pixel, 20 in classicStep size of the cut corners in pixel, corner radius in classic, px.
childrenFolioPanel elements—Each takes media, children (or a function of open), label and className.
activenumber—Controlled open panel.
defaultActivenumber0Panel open at first when uncontrolled.
onActiveChange(index: number) => void—Called when another panel opens.
labelstring—Accessible name of the list.
easingstring"cubic-bezier(0.32, 0.72, 0, 1)"Timing function of the slide.

Dependencies

0 external runtime dependencies

Ships with nothing but React.