Components ยท UI Primitives
CopyCodeInput
Input with copy-to-clipboard, for referral / share links.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | โ | Text to display and copy. |
label | string | โ | Field label. |
onCopy | () => void | โ | Fires after a successful copy. |
Reference API for the design concept — align names and types with your implementation.
Guidelines
- Use in the active theme; the component adapts to light and dark automatically.
- Keep the purple accent for interactive states only โ never as a fill or background.
- Copy the markup from the Code tab and wire it to
base.csstokens.