Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA read-only secret such as an API key, masked by default, with timed Reveal and Copy buttons that never reveal it and announce what happened.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Use it to show a credential that people need to copy but should not leave visible on screen: API keys, signing secrets, webhook tokens, recovery codes.
Do not use it as an input for typing a password; use password-input. Do not show secrets that are not the viewer's own.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Visible label; also builds the button names. |
value | string | - | The secret. |
revealFor | number | 10 | Seconds Reveal lasts. 0 keeps it until hidden. |
onCopy | () => void | - | Called after a successful copy. |
aria-pressed) whose name switches between Reveal and Hide.revealFor seconds and says so in a polite status line.| Key | Action |
|---|---|
| Tab | moves across the field, Reveal and Copy |
| Enter / Space | activates a button |
The component ships a Testing Library test (secret-field.test.tsx) that covers masking, revealing and hiding, the reveal timeout and copying without revealing.