ProductShell
The frame a product composes instead of builds — rail, top bar, phone sheet, user menu and scope breadcrumb, in an agency and a client variant.
Agency
The shell with the account chip in the top bar and the scope chain beside it: the mark alone in the rail's brand row, a command chip, three destinations and a pinned footer card. Reach for it when one person works across many clients. Below 768 px the rail becomes a sheet behind the menu button; the client variant is the same frame with the account control at the foot of the rail.
Usage
import { ProductShell } from '@oceanic-hub/brand-system'Hand it the product mark, the rail sections and the person, and it draws the whole shell: a 256 px rail, a 64 px top bar, and below 768 px a menu button that opens the same rail as a sheet 256 px wide, capped at 85 vw.
The two variants differ in where the account control lives, which is why they are a union and
not a flag. agency puts the mark alone in the rail's brand row and an account chip with the
person's initials at the right of the top bar, beside the scope breadcrumb. client puts the mark
at the start of the top bar in a 224 px slot, a context label at the right and no chip at all; the
identity card at the foot of the rail is the account control. Pass the slot the variant needs and
TypeScript refuses the other.
It knows no product. The mark, every label, every route and every user-menu item are yours.
The user menu always carries a Light / Dark / System entry wired to ThemeProvider, so the shell
must sit under one. Navigation items are anchors when they carry an href, and the row you are on
is a filled pill with no check mark.
The 44 px target belongs to the shell's own controls — the menu button, the account chip and the
identity card. Nav rows keep their density. It is a frame: reach for AppShell and
WorkspaceNav directly when a product needs a different arrangement.
Client
The shell a client sees: the mark at the start of the top bar in a 224 px slot, a context label at the right and no account chip — the identity card at the foot of the rail opens the user menu instead. Reach for it for the surface where the person belongs to one workspace.
API Reference
See the ProductShell API page for every prop of every part, with types, defaults and the contract that pins them.