App Shell FlatPro
The same frame laid flat: grey sidebar, edge-to-edge page and work area split by single hairlines; every region resizes.
oxyn add shell-flatHome
Your page goes here
The frame keeps the sidebar, this page and the work area in step: drag the hairlines to resize, fold the sidebar to a rail, close the work area.
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- The same frame laid flat: grey sidebar and edge-to-edge regions split by single hairlines.
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
App Shell Flat is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add shell-flatUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data in the Flat frame.
Home
Your page goes here
The frame keeps the sidebar, this page and the work area in step: drag the hairlines to resize, fold the sidebar to a rail, close the work area.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Inset
The same screen in the Inset frame.
Home
Your page goes here
The frame keeps the sidebar, this page and the work area in step: drag the hairlines to resize, fold the sidebar to a rail, close the work area.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons where the data will land.
Home
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
Nothing yet: each region says what will appear.
Home
Your page goes here
Everything a screen shows sits in this pane; the sidebar and work area stay put.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
AppShellScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`. |
state | String | "sample" | `sample`, `loading` or `empty`. |
height | u32 | 640 | Height px. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Sidebar, page, then the work area |
| ←or→ on a hairline | Resize the sidebar or work area |
| Escape | Close an open menu; clear search |
Accessibility
- The sidebar is a labelled nav; the open chat has aria-current and unread chats say so.
- Menus open from a trigger that reports aria-expanded; their items are menuitemradio and Escape shuts them.
- Hairlines are separators with a value and arrow keys; skeletons are hidden from screen readers.
Responsive behaviour
- Under 860 px of width the work area becomes a sheet opened from the top bar.
- Under 640 px the sidebar slides in from the menu button and the composer drops its labels.
Edge cases (spec)
Root fills its container (definite width, overflow clip, container queries). Under 860 px the work area becomes a sheet opened from the top bar; under 640 px the sidebar slides in from a menu button and composer menus drop their labels.
Notes for AI
- Import
AppShellScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ScreenShellElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.