SecretInput

import { SecretInput } from '@hanzo/ui/product'

No examples yet.

Types

export type SecretInputProps = {
value: string
/** Omit to render read-only — the common case for a key the server minted. */
onChange?: (v: string) => void
placeholder?: string
disabled?: boolean
/** Show the copy control. Default true — copying is why the field exists. */
copy?: boolean
/** Names the secret in analytics ("openai-key"). Never the value. */
id?: string
/** Failed validation: reddens the frame AND says so to a screen reader. A
* colour alone is not a message, and a required key is the field's most
* common error. */
invalid?: boolean
/** id of the element holding the error text, so the field announces WHY it is
* invalid rather than only that it is. */
'aria-describedby'?: string
}

Exports

SecretInputtype SecretInputProps