Forms
Copy Input
A read-only field with a copy button, for API keys, webhook URLs and share links.
Group: Forms. Exports: CopyInput. Halaska addition with no shadcn/ui equivalent.
Usage
import { CopyInput } from "./halaska-kit";
CopyInput props
valueany: The controlled value.labelstring: Visible label.styleCSSProperties: Inline style merged onto the root element.
Accessibility
- The input is read-only and selects its whole value on focus. A string label becomes its aria-label, with "Value to copy" as the fallback.
- The copy button is a native button whose text changes from Copy to Copied for 1.4 seconds.
- The button is marked as a polite live region for that change.
Halaska UI · Components · Patterns · Screens · Install