AI Chat / Double SidebarPro
Rail and chats column, a plain chat with web search folded into one line per answer, and artifacts on the right: an editable sheet and the sources.
oxyn add chat-double-sidebarPinned
Projects
Chats
Compare five fabrics for the overshirt: weight, price per metre and lead time.
Washed linen and hemp twill are the sturdiest; organic cotton is the cheapest and the quickest to arrive. Tencel drapes best but needs the gentlest wash.
For a shirt worn open over a tee I'd go hemp twill at about 240 gsm – it holds its shape, softens with each wash and lands in two weeks. I put all five side by side.
Which one holds up best if it's washed every week?
Ran 1 search · 1.2s
Hemp twill. It loses the least strength over fifty washes and pills less than the cotton blends; linen comes second but creases more each time.
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
- A chat with the web beside its artifacts, under a two-column sidebar.
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
AI Chat / Double Sidebar 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 chat-double-sidebarUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data in the Inset frame.
Pinned
Projects
Chats
Compare five fabrics for the overshirt: weight, price per metre and lead time.
Washed linen and hemp twill are the sturdiest; organic cotton is the cheapest and the quickest to arrive. Tencel drapes best but needs the gentlest wash.
For a shirt worn open over a tee I'd go hemp twill at about 240 gsm – it holds its shape, softens with each wash and lands in two weeks. I put all five side by side.
Which one holds up best if it's washed every week?
Ran 1 search · 1.2s
Hemp twill. It loses the least strength over fifty washes and pills less than the cotton blends; linen comes second but creases more each time.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same screen in the Flat frame.
Pinned
Projects
Chats
Compare five fabrics for the overshirt: weight, price per metre and lead time.
Washed linen and hemp twill are the sturdiest; organic cotton is the cheapest and the quickest to arrive. Tencel drapes best but needs the gentlest wash.
For a shirt worn open over a tee I'd go hemp twill at about 240 gsm – it holds its shape, softens with each wash and lands in two weeks. I put all five side by side.
Which one holds up best if it's washed every week?
Ran 1 search · 1.2s
Hemp twill. It loses the least strength over fifty washes and pills less than the cotton blends; linen comes second but creases more each time.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons where the data will land.
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.
No projects or chats yet
Ask with the web
Answers search the web, then fold the searches into one line you can open.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Folded
The chats column folded to the rail; the thread takes the room.
Pinned
Projects
Chats
Compare five fabrics for the overshirt: weight, price per metre and lead time.
Washed linen and hemp twill are the sturdiest; organic cotton is the cheapest and the quickest to arrive. Tencel drapes best but needs the gentlest wash.
For a shirt worn open over a tee I'd go hemp twill at about 240 gsm – it holds its shape, softens with each wash and lands in two weeks. I put all five side by side.
Which one holds up best if it's washed every week?
Ran 1 search · 1.2s
Hemp twill. It loses the least strength over fifty washes and pills less than the cotton blends; linen comes second but creases more each time.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ChatRailScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`. |
state | String | "sample" | `sample`, `loading`, `empty` or `folded`. |
height | u32 | 640 | Height px. |
nowrequired | ClockMs | — | The clock. |
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 |
| Arrow keys in the sheet | Move the selected cell |
| Enter in Contents | Keep the edit, move down |
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)
Every screen is authored on the 1440 × 900 stage (rule R1) and scaled to its column; the full view (/screens/<slug>/full) renders at the real viewport with the state bar under it (R2). Under 860 px of real width the work area becomes a sheet opened from the top bar; under 640 px the sidebar slides in from a menu button and the composer's approval and model chips drop their labels (icons stay). Every label in a row, chip or card title ellipsises in a flex child with min-width 0 (R5); scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.
Notes for AI
- Import
ChatRailScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ChatRailElinoxyn_gpui. - Props to set first:
now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.