PasswordField API
import { PasswordField } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
autoComplete | string | |
autofocus | boolean | |
clearable | boolean | |
color | string | |
counter | boolean | |
debounce | number | |
density | 'default' | 'compact' | 'comfortable' | |
description | string | |
disabled | boolean | |
error | string | |
floatingLabel | boolean | |
label | string | |
maxlength | number | |
minlength | number | |
name | string | |
onChange | (value: string) => void | |
onClear | () => void | |
onDebouncedInput | (value: string) => void | |
onInput | (value: string) => void | |
onStrengthChange | (detail: { value: string; score: 1 | 2 | 3 | 4; label: string; caption: string }) => void | |
onVisibilityChange | (revealed: boolean) => void | |
pattern | string | |
placeholder | string | |
radius | 'none' | 'large' | 'full' | string | |
readOnly | boolean | |
required | boolean | |
revealable | boolean | |
shape | 'default' | 'square' | 'soft' | |
showStrength | boolean | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
spellCheck | boolean | |
strengthEvaluator | (value: string) => { score: 1 | 2 | 3 | 4; label: string; caption: string } | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
validation | 'error' | 'success' | 'none' | |
value | string | |
variant | 'classic' | 'surface' | 'soft' | 'outlined' | 'filled' | 'flushed' | 'minimal' | 'contrast' | 'elevated' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-password-field>
PasswordField renders the ui-password-field custom element from @editora/ui-core, which can also be used without React.
Attributes: aria-describedby, aria-description, aria-label, revealable, show-strength
Events: change, clear, input, strength-change, visibility-change