vwf .

API Reference

Complete API documentation for components, utilities, and framework core

Reference/API/Password

Password

Password input with visibility toggle (extends Input component)

🔧 Props

PropertyTypeDefaultDescription
idstringpassword-{timestamp}Unique identifier
labelstring'Password'Label text
valueState|stringundefinedInput value
buttonClassstring-Toggle button classes
autocompletestring'current-password'Autocomplete hint
messageobject{}Validation message
oninputfunctionundefinedInput handler

✨ Features

Extends Input component with all Input props

Independent visibility state per instance

Grid overlay pattern for toggle button

Oracle JET icons (view/view-hide)

Automatic disabled state handling

💻 Examples

Login Password

const password = van.state('');
return Password({
  label: 'Password',
  value: password,
  oninput: (e) => password.val = e.target.value
});

▶️ Live Preview

💡 Click "Edit Code" to modify the example

🔄 Click "Apply Changes" to see your modifications

↩️ Click "Reset" to restore original code

💡 Usage Tips

🔗 Related

Explore vwf

Discover what vwf can do