Inputs and selection
Password input
Input + show/hide
function PasswordInputDemo() { const [v, setV] = React.useState("hunter22"); return ( <View className="w-full gap-2"> <Label htmlFor="ks-password">Password</Label> <PasswordInput id="ks-password" value={v} onChangeText={setV} /> </View> );}API
<PasswordInput value onChangeText />Get it
Already in every copy of the native kit:
import { PasswordInput } from '@/components/kit/password-input';Details
- Exports
PasswordInput- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/input, @halftone-native/lib-utils
- Also searched as
- secure, show hide, login
- Registry JSON
- /r/native/password-input.json
function PasswordDemo() { const [v, setV] = React.useState(''); return ( <div className="flex w-full max-w-sm flex-col gap-2"> <Label htmlFor="demo-password">Password</Label> <PasswordInput id="demo-password" value={v} onChange={(e) => setV(e.target.value)} placeholder="At least 8 characters" /> </div> );}Usage
Pair it with a Label like any Input.
API
<PasswordInput id value onChange />Get it
Already in every copy of the web kit:
import { PasswordInput } from '@/components/kit/password-input';Details
- Exports
PasswordInput- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/input
- Also searched as
- password
- Registry JSON
- /r/web/password-input.json
Agents: the whole registry is at /llms.txt.