children?ReactNodehideLabel?stringinvalid?booleanfalseref?Ref<HTMLInputElement>showLabel?string| Prop | Type | Default |
|---|---|---|
children? | ReactNode | - |
hideLabel? |
string |
| - |
invalid? | boolean | false |
ref? | Ref<HTMLInputElement> | - |
showLabel? | string | - |
Type base (some attrs are managed internally): InputHTMLAttributes<HTMLInputElement>
Props whose default is messages.* fall back to the message dictionary. To change them, see: i18n
import { PasswordInput } from '@k8ordo/ui';<PasswordInput
disabled={false}
invalid={false}
required={false}
placeholder="Enter your password"
/>const [value, setValue] = useState('hunter2');
<PasswordInput
disabled={false}
invalid={false}
required={false}
onChange={(event) => setValue(event.target.value)}
value={value}
/><PasswordInput
defaultValue="read-only-password"
disabled
invalid={false}
required={false}
/>