Skip to content
tcpsystemsui

Theme

Colour scheme
Accent
Density
Radius
Esc

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
import ApiKeyReveal from '@tcpsystems/ui/foundation/ApiKeyReveal';
PropTypeDefault
key?string''
prefix?string'sk_'
maskChar?string'•'
consequence?string'This key will only be shown once. Copy it now and store it securely.'
loading?booleanfalse
disabled?booleanfalse
track?nativenone
Snippet
children
HookKind
.tcp-api-key-revealRoot class
data-tcp-trackData attribute