Layout
Typography
Text primitives on the kit's type scale: body text, six heading levels, captions and inline code.
Group: Layout. Exports: Text, Heading, Caption, Code. shadcn/ui equivalent: Typography (partial parity).
Usage
import { Text } from "./halaska-kit";
Text props
childrenReactNode: Content.sizestring(default "base"): Size of the control.weightstring(default "regular"):colorstring:monoboolean:mutedboolean:secondaryboolean:alignstring:truncateboolean:styleCSSProperties: Inline style merged onto the root element.asstring(default "span"):
Heading props
childrenReactNode: Content.levelnumber(default 1):styleCSSProperties: Inline style merged onto the root element.
Caption props
childrenReactNode: Content.styleCSSProperties: Inline style merged onto the root element.
Code props
childrenReactNode: Content.styleCSSProperties: Inline style merged onto the root element.
Accessibility
- Heading renders a real h1 to h6 element from its level prop.
- Text renders a span by default. Use the as prop for a paragraph or another element.
- Muted and tertiary colours are lower contrast, so keep them for supporting text.
Known gaps
- No blockquote, list or lead paragraph styles.
- No prose wrapper for long-form content.
Used in
chat screen, canvas screen, Contextual taskbar, Spaces and agents, Prompt input, Message thread, Streaming answer, Code block, Model & context, Thinking, Inline citations, Context sources, Confidence states, Recommendation, Feedback capture, Plan preview, Approval card, Autonomy levels, Permission scope, Task queue, Agent status, Tool calls, Task rows, Handoff, Action receipt, Checkpoints, Audit log, Error repair, Artifact, Diff view, Diff table, Structured data, Insight cards, Comparison, Taskboard, Inline assist, Nudge, Digest, Notification center, Command search, Agent setup
Halaska UI · Components · Patterns · Screens · Install