4.2.0
Patterns

EntityDrawer

A detail panel that opens beside a list rather than over it, so the reader never loses their place — the non-modal answer to `Sheet`.

Default

Anchored to the right of its nearest positioned ancestor, with a tabbed body.

Usage

import { EntityDrawer } from '@oceanic-hub/brand-system'

It positions against its nearest positioned ancestor, so it belongs inside a relative region — that is what lets a list keep its context while the drawer is open.

This is not Drawer. That one ships here too — vaul's bottom sheet, dismissed by a throw. Nothing in this component drags, snaps or nests: it is a persistent side panel closed by its own button or its scrim. For the gesture, reach for Drawer; for a modal that must be dealt with before anything else, Sheet. (shadcn's own Drawer page is Base UI now rather than vaul, which is the vocabulary difference Drawer's own note works through.)

One gap worth knowing rather than discovering: defaultTabId seeds the open tab, so a deep link can select it — but there is no activeTabId or onTabChange, so the host never learns which tab the reader moved to and cannot write it back.

className merges onto the panel for LAYOUT only (composition.md §6) — widening or narrowing the default max-w-[440px], never a colour or typography override. The edge, the scrim and the tabs stay fixed; width is the one seam.

Without a status strip

statusStrip is optional — a plain entity with nothing to badge gets a bare header, not an empty row where one used to be.

Resized

className widens the fixed max-w-[440px] per composition.md §6 (layout only) — the header, tabs and scrolling body all hold at the wider width, because nothing about the panel's internals assumed the default.

API Reference

See the EntityDrawer API page for every prop of every part, with types, defaults and the contract that pins them.

On this page