New session button
The new-session action aligned to the right of the launcher header. A thin wrapper over Button with a leading plus glyph.
Included in the single kansho full pack. Components are not offered as separate installs.
Demo action: No action yet
Variants
Usage
GuidanceDo
- Anchor it to the right of the launcher header.
- Shorten to label="New" in tight headers.
Don't
- Use it for anything other than starting a session.
- Drop the leading plus glyph — it carries the affordance.
- When to use
- The primary create action on a session launcher or list header.
- When not to
- Inline row actions or menus — use a plain Button there.
Props
Extends Button| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | 'New session' | Button text beside the plus glyph. |
| ...ButtonProps | ButtonProps | — | All Button props except children — variant, size, disabled, onClick, etc. |
Component documentation
New Session Button
components/workspace/new-session-button.tsx