Cloud|

@k2b/ui

Toolbar

Semantic action groups, separators, spacing, and responsive wrapping.

Toolbar@k2b/ui

A semantic action row with named groups, separators, a flexible spacer, and optional wrapping. Buttons retain their own keyboard behavior.

TSX

Copy
<Toolbar label="Document actions" wrap>
<Toolbar.Group label="History">
<IconButton size="xs" label="Undo"><i class="ti ti-arrow-back-up" /></IconButton>
<IconButton size="xs" label="Redo"><i class="ti ti-arrow-forward-up" /></IconButton>
</Toolbar.Group>
<Toolbar.Separator />
<Button size="xs" variant="subtle"><i class="ti ti-activity" /> Status</Button>
<Toolbar.Spacer />
<Button size="sm">Publish</Button>
</Toolbar>

Toolbar gives related actions one semantic and responsive container.

Use Toolbar

Use it for editor commands, table actions, and compact page controls. Use Toolbar.Group for named clusters, Toolbar.Separator between clusters, and Toolbar.Spacer before a trailing primary action.

Import

tsx
import { Button, IconButton, Toolbar } from "@k2b/ui";

Layout

Enable wrap where actions may outgrow the available width. The toolbar does not impose button variants or a second focus model.

Separators automatically follow the toolbar orientation: they are vertical in a horizontal toolbar and horizontal in a vertical toolbar.

Accessibility

Always provide label. Name groups when their purpose is not obvious. Buttons keep native keyboard behavior, labels, and disabled state.

Runtime

The layout renders on the server. Only child action handlers require hydration.

Example

tsx
<Toolbar label="Document actions" wrap>
  <Toolbar.Group label="History">
    <IconButton label="Undo"><i class="ti ti-arrow-back-up" /></IconButton>
    <IconButton label="Redo"><i class="ti ti-arrow-forward-up" /></IconButton>
  </Toolbar.Group>
  <Toolbar.Separator />
  <Button size="xs" variant="subtle">Status</Button>
  <Toolbar.Spacer />
  <Button size="sm">Publish</Button>
</Toolbar>

Connect a coding agent

The Cloud skill provides compact working instructions. MCP supplies exact current documentation when details matter.

CLI command
bunx skills add https://docs.example.com

This command installs the working instructions published by this website in the selected coding agent.

For exact, current details, also connect the MCP server through one of the agent tabs.

Installation uses the open-source Vercel Skills CLI.

The skill and MCP complement each other: the skill describes workflows, while MCP supplies current documentation.