{"name":"password-input","title":"Password Input","description":"","kind":"component","category":"inputs","status":"beta","props":{"value":{"type":"string","model":true,"description":"The Input's value. Controlled: value with onChange. Uncontrolled: defaultValue."},"visible":{"type":"boolean","default":false,"description":"The password shown as text. Controlled with onVisibleChange; uncontrolled: defaultVisible.","model":true},"size":{"type":"enum","values":["xs","sm","md","lg"],"default":"md","description":"The Input's sizes (`lib/control.ts`): xs 24px, sm 28px, md 32px, lg 36px."},"variant":{"type":"enum","values":["outline","subtle","ghost"],"default":"outline","description":"The shared control's looks (`lib/control.ts`), at every size. outline: the form field (field colour, hairline). subtle: the inspector (inset grey, no edge). ghost: nothing until touched. Focused, open and invalid look the same in every variant."},"invalid":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"autoComplete":{"type":"enum","values":["current-password","new-password"],"default":"current-password"},"ignorePasswordManagers":{"type":"boolean","default":false,"description":"Ask password managers not to fill or offer this field."},"showLabel":{"type":"string","default":"Show password","description":"The Button's name while the password is hidden."},"hideLabel":{"type":"string","default":"Hide password","description":"The Button's name while the password is shown."},"start":{"type":"node","description":"Addon before the field (a lock icon)."},"placeholder":{"type":"string"},"name":{"type":"string","description":"Form field name."}},"playground":{"name":"Playground","props":{"placeholder":"Password","aria-label":"Password","size":"md","variant":"outline","invalid":false,"disabled":false,"autoComplete":"current-password"},"width":280},"exampleFiles":[{"file":"password","title":"Password"},{"file":"sign-in","title":"Sign in"},{"file":"new-password","title":"Choose a new password"},{"file":"confirm-action","title":"Confirm a sensitive change"}],"worstCase":[{"name":"Long password, shown","props":{"visible":true,"value":"correct-horse-battery-staple-orbit-lantern-with-harbor-2026","aria-label":"Password"},"width":240},{"name":"Long password, hidden","props":{"value":"correct-horse-battery-staple-orbit-lantern-with-harbor-2026","aria-label":"Password"},"width":240},{"name":"One character","props":{"visible":true,"value":"x","aria-label":"Password"},"width":280},{"name":"Right-to-left","props":{"visible":true,"value":"كلمة-سر-طويلة","aria-label":"Password"},"width":280},{"name":"Narrow","props":{"placeholder":"Password","aria-label":"Password"},"width":96}],"anatomy":[{"part":"root","element":"div","description":"Ark's password-input root around the InputGroup; class and style land here."},{"part":"input","element":"input","description":"The Input inside the InputGroup (data-password-input=\"input\"): type password, or text while shown; spellcheck and autocapitalize off; autocomplete current-password or new-password."},{"part":"visibility-trigger","element":"button","description":"The Button (data-password-input=\"visibility-trigger\"): ghost, xs, square, muted; an eye while hidden, an eye with a slash while shown. aria-label and tooltip say what a press does; aria-controls the input."}],"events":{"visibleChange":"(visible: boolean) after a press on the Button"},"states":["visible","hover","focus","invalid","disabled"],"tokens":["color.ink-3"],"a11y":{"keyboard":["Tab: the field, then the Button","Space / Enter on the Button: show or hide; focus stays on the Button"],"notes":["The Button's aria-label says what a press does (Show password / Hide password) and changes with it; aria-controls points at the input.","A pointer press on the Button keeps the caret in the field.","Needs a name: a Field label or an aria-label."]},"motion":["the InputGroup's ring and fill; the Button's press scale and hover fill (pointer only)","the icon swaps at once, from the pointer and the keyboard alike"]}