Textarea
Multi-line text entry for notes and descriptions.
Read-only block of code with a copy button, optional title, language label, tabs, and line numbers. No syntax highlighting.
Read-only code with a copy button. Optional title, language label, tabs, and line numbers. No syntax highlighting, so it adds no dependency.
Two tabs with line numbers. Variants shows title, wrapping and more.
import { Button, Card } from "agentic-ds-kit";
export function Welcome({ name }: { name: string }) {
return (
<Card title={`Welcome back, ${name}`} description="Pick up where you left off, or start a new project from one of the templates below.">
<Button appearance="solid" mode="primary">New project</Button>
</Card>
);
}
Copy writes the raw code string, never the line numbers. With tabs, the title only names the code region; the tab labels are the visible header. Language is a label, not highlighting. The code region takes keyboard focus only when it scrolls.
import { CodeSnippet } from "agentic-ds-kit";From contracts/codesnippet.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| code | string | No | — | required unless tabs is set; ignored when tabs is set |
| tabs | array | No | — | renders kit Tabs (segmented, sm) in the header; a tab's language wins over language |
| language | string | No | — | label in the header only; no highlighting |
| title | string | No | — | filename or caption in the header; with tabs it only names the code region |
| ariaLabel | string | No | — | names the code region when there is no title (title wins). Give each snippet on a page its own name |
| showLineNumbers | boolean | No | false | decorative (aria-hidden, not selectable, never copied) |
| copyable | boolean | No | true | kit Button sm: tertiary in the header, secondary in its own column beside the code when there is no header, so text never scrolls under it. Copy -> Copied for 1.2s |
| wrap | boolean | No | false | false scrolls long lines horizontally |
| maxHeight | string | number | No | — | scrolls inside past this height |
Multi-line text entry for notes and descriptions.
After an agent says it is finished: each agreed "done when" check marked met, not met, unverified or checking, with its proof.
Every time a policy rule stepped in on an agent by itself: blocked, rewritten or flagged, what the agent tried, newest first.
Test a candidate agent version against the baseline, case by case, before you ship it.