Layout Components

<Box>, <Text>, <ScrollBox>, <Modal>, <SplitPane>, <Stack>, <Grid>, <Spacer>, <Divider> and <Badge>.

These primitives lay out the cell grid with Yoga flexbox.

<Box>

The layout container.

Live64×14 · booting Turbolog…tsx
preview://layout:1
<Box className="flex-row gap-2 p-1 border rounded">  <Box className="flex-col grow border rounded px-1 bg-surface">    <Text bold>Sidebar</Text>  </Box>  <Box className="flex-col grow border rounded px-1 border-accent">    <Text color="accent">Content</Text>  </Box></Box>
PropDescription
classNameCell utilities
bordersingle rounded double heavy dashed
titleText inlaid in the top border
bg / fgBackground and text color
overflowhidden or scroll

<Text>

Inline text. Nested <Text> becomes styled spans.

<Text wrap="truncate-end">  <Text bold>Deployed</Text> to <Text color="accent">production</Text></Text>
PropDescription
colorText color
bold italic underline dimAttributes
wrapwrap nowrap truncate-end

<ScrollBox>

A scrollable column. stickyScroll pins to the bottom as content grows.

Live60×12 · booting Turbolog…tsx
preview://scrollbox:1
<ScrollBox stickyScroll focusable className="border rounded px-1" height={8}>  {logs.map((line, i) => <Text key={i}>{line}</Text>)}</ScrollBox>

A centered overlay that dims what's beneath and traps focus.

Live72×14 · booting Turbolog…tsx
preview://modal:1
<Modal title=" Commands " onClose={() => setOpen(false)} width={48}>  <Select searchable autoFocus options={commands} onChange={run} /></Modal>

Spacer, Divider and Badge

<Spacer /><Divider title="Deployments" /><Badge variant="success">READY</Badge><KeyHint keys="⌘K" label="search" />

Layout helpers

Shorthands for common flex arrangements.

<Center>  <Text>Nothing deployed yet</Text></Center><Stack gap={1} divider>  <Overview />  <Deployments /></Stack><Grid columns={3} gap={1}>  {metrics.map((m) => <Metric key={m.id} {...m} />)}</Grid>

<SplitPane>

Two panes and a divider. With resizable, the divider joins the Tab order and ← → resize it (Shift for five cells).

<SplitPane defaultSize={0.3} resizable minSize={16}>  <Sidebar />  <Content /></SplitPane>

size is a fraction (0.3) or a number of cells (24). direction="column" stacks the panes.