Skip to content
Navigation

SideFlow

A side panel slides in and its links flow in one after another. Esc, the backdrop or a link closes it; Tab stays inside while it is open.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href, note? }[]โ€”The links. note = small line under the label.
activestringfirst hrefhref of the active link at start.
onSelect(item, e) => voidโ€”Click handler. Call e.preventDefault() to stay on the page.
side"left" | "right""left"Which edge the panel comes from.
containedbooleanfalseKeep the panel inside the nearest relative parent, not the whole screen.
titleReactNode"Menu"Heading at the top of the panel.
footerReactNodeโ€”Anything at the bottom of the panel.
triggerReactNode"Menu"Text on the open button.
triggerClassNamestringglass pillOpen button look.
accentstring"#a78bfa"Active marker and number colour.
labelstring"Site"Name read out by screen readers.
classNamestringdark panelPanel look.