Velocity X Components

Core UI

Side Drawer Panel

The house data-entry surface — right-docked drawer on desktop, three-snap-point draggable bottom sheet on mobile, with focus trap and a dock-minimise control.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add side-drawer-panel

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Side Drawer Panel →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.0 react
Side Drawer Panel

Props

NameTypeRequiredDefaultDescription
openbooleanYes
onClose() => voidYes
onCollapse(() => void)?Yesshows a "minimise to dock" control when set
titlestringYes
subtitlestring?Yes
childrenReactNodeYesform body
footerReactNode?Yessticky action row (Save/Cancel)
snaps[number, number, number]No[0.18, 0.55, 0.92]mobile snap fractions

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/side-drawer-panel/SideDrawerPanel.jsx

Using the Side Drawer Panel component

Install it with velocityx add side-drawer-panel. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Core UI.