SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

AppShellToggle

Island holding an app shell's collapse toggle.

Skip to content
Acme Ops / Monitors

Monitors

2 down

48 checks across 6 regions. Two are failing right now.

checkout-api and eu-west webhooks have failed their last 3 checks.

View code
tsx
<AppShell
	labels={{ nav: "Main", skip: "Skip to content", menu: "Menu", close: "Close menu", collapse: "Collapse sidebar" }}
	collapsed={readAppShellCookie(request.headers.get("Cookie"))}
	nav={nav}
>
	{page}
</AppShell>

Demo apps

Whole pages built only from @sdxc/ui, each for an invented product with its own palette and type. They open in a new tab.

Every demo, landings and docs sites alike, is listed in the demo gallery.

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { AppShellToggle } from "@sdxc/ui/app";

Renders the toggle the shell's top bar shows from sheetBelow. AppShell places it; load @sdxc/ui/app/app-shell-toggle in the browser entry so the cookie, ⌘B and Esc work.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

@sdxc/ui

Can’t find it? Contact us