When to use it
Load secrets on demand with loadValue and hide them after a delay. The mask never shows the value length.
Show a masked value, such as an API key, with show, hide, and copy actions.
Native example
Load secrets on demand with loadValue and hide them after a delay. The mask never shows the value length.

Captured exampleExpo web renderer
Open interactive previewimport * as Clipboard from 'expo-clipboard'
import { LumenSecretValue } from '@santi020k/lumen-react-native'
export const ApiKeyField = ({ fetchKey }: { fetchKey: () => Promise<string> }) => (
<LumenSecretValue
autoHideAfter={30_000}
label="Sandbox API key"
loadValue={fetchKey}
onCopy={Clipboard.setStringAsync}
/>
)Reference
The primary shared and platform-specific options exposed by LumenSecretValue.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / value or loadValue / autoHideAfter | field name / secret or loader / auto-hide delay | required / required / never | Load secrets on demand with loadValue and hide them after a delay. |
Native behavior
Load secrets on demand with loadValue and hide them after a delay. The mask never shows the value length.
The toggle exposes expanded state, and loading, hiding, and copy results are announced.
Shared component