Content
Snippet
A single-line command with a prompt character and a copy button.
Group: Content. Exports: Snippet. Halaska addition with no shadcn/ui equivalent.
Usage
import { Snippet } from "./halaska-kit";
Snippet props
textstring:promptstring(default "quot;):styleCSSProperties: Inline style merged onto the root element.
Accessibility
- The copy button is a native button labelled "Copy command". The label changes to "Copied" for 1.5 seconds after copying.
- The button is marked as a polite live region for that change.
- Long commands are truncated with an ellipsis. The full text is still copied.
Halaska UI · Components · Patterns · Screens · Install