API and Development
Secret renders a read-only Input showing a masked value. Default masking repeats bullets for all characters or keeps the last four visible when maskAllCharacters is false. Optional revealable toggles visibility via lead icon; the tail icon copies to clipboard and surfaces snackbar success or error feedback.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | The sensitive value to mask and optionally reveal. |
|
| — | HTML |
|
| — | Text label displayed above the secret input. |
|
| — | Color variant for the label. |
|
|
| When true, masks all characters. When false, reveals the last 4 characters. |
|
|
| When true, shows a reveal/hide toggle icon. |
Interactive examples and edge cases for this component are in Storybook.
The docs app mounts a single SnackbarManager in the shell so copy feedback works without nesting another manager.