API key copy
One click copies the secret key, and the button confirms it.
Not quite it? Ask for a variation
Install
Writes one React component into components/illos. Nothing else to install.
npx shadcn@latest add https://illos.dev/r/flat/api-key-copy.jsonOr hand it to your agent
Claude Code, Cursor, Codex and any other coding agent can add it from the prompt.
How it moves
- the secret key sits masked in its field.
- a click on the copy button copies it.
- the button turns into a tick, and Copied appears under the field.
Where it fits
For developer products and API platforms: the getting-started section of your docs, a features card on API access, or the empty state of an API keys page. The masked key and the copy button that turns into a tick show a developer exactly where the key lives and that getting it takes one click, with the secret never shown in full. As a spot it fits beside a short code sample. It is free to copy and pairs with Settings toggle, Role permissions and API gateway.
Pairs well with Settings toggle, Role permissions, API gateway and Sign-in key.
On your site
Read where product illustrations go, how to place an animated SVG and how to keep animations fast.
For developers
- File size
- 7.1 KB gzipped
- Motion
- Plays once, 2.6 s, then holds
- Reduced motion
- Shows a still
- File
- api-key-copy.svg