Input
A single line field with clear labels and useful states.
Capture sensitive text with a visible reveal control.
npx shadcn@latest add @silicon-ui/password-fieldnpx shadcn@latest add @silicon-ui/password-fieldInstall the dependencies.
npm install motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/password-field/password-field.tsxcomponents/silicon-ui/password-field/password-field.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
label* | string | — |
description | string | — |
messagesTranslated or reworded toggle names. | Partial<PasswordFieldMessages> | — |
Also accepts the props of InputHTMLAttributes<HTMLInputElement>, except type.