ApiKeyReveal
Displays an API key with reveal and copy actions, showing consequence on reveal.
beta
Examples
Live examples for this component are on the way.
API
import ApiKeyReveal from '@tcpsystems/ui/foundation/ApiKeyReveal';| Prop | Type | Default |
|---|---|---|
key? | string | '' |
prefix? | string | 'sk_' |
maskChar? | string | '•' |
consequence? | string | 'This key will only be shown once. Copy it now and store it securely.' |
loading? | boolean | false |
disabled? | boolean | false |
track? | native | none |
| Snippet |
|---|
children |
| Hook | Kind |
|---|---|
.tcp-api-key-reveal | Root class |
data-tcp-track | Data attribute |