{"name":"input","title":"Input","description":"","kind":"component","category":"inputs","status":"stable","props":{"value":{"type":"string","model":true},"size":{"type":"enum","values":["xs","sm","md","lg"],"default":"md","description":"The shared control's sizes (`lib/control.ts`), dimensions only: xs 24px, sm 28px, md 32px, lg 36px; text 12 · 12 · 13 · 14px; padding 6 · 8 · 10 · 12px. 40px and 16px text on a coarse pointer."},"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."},"mono":{"type":"boolean","default":false},"invalid":{"type":"boolean","default":false,"attr":"aria-invalid","description":"aria-invalid and the red ring. Absent: a surrounding Field decides."},"disabled":{"type":"boolean","default":false,"attr":"disabled"},"multiline":{"type":"boolean","default":false,"description":"Render a textarea."}},"playground":{"name":"Playground","props":{"placeholder":"billing-api","aria-label":"Project name","size":"md","variant":"outline","mono":false,"invalid":false,"disabled":false},"width":280},"exampleFiles":[{"file":"project-name","title":"Project name"},{"file":"filter-toolbar","title":"Filter in a toolbar"},{"file":"environment-variable","title":"Environment variable"},{"file":"build-settings","title":"Build settings in a side panel"},{"file":"locked-for-members","title":"Locked for members"}],"worstCase":[{"name":"Long value","width":280,"props":{"value":"bartholomew.fitzgerald@northwind-industries-holdings.example.com","aria-label":"Supplier email"}},{"name":"Long placeholder","width":280,"props":{"size":"sm","placeholder":"Describe the project, its owner and the quarter it belongs to","aria-label":"Description"}},{"name":"One character","width":280,"props":{"value":"J","aria-label":"Initial"}},{"name":"Right-to-left","width":280,"props":{"value":"فستق حلبي مع العسل","dir":"rtl","aria-label":"Project name"}},{"name":"Long text area","width":280,"props":{"multiline":true,"value":"Analytics holds the top slot all weekend. Merge it first thing Saturday so the build has time to settle before the afternoon release, then recheck seat usage before promoting the annual-plan discount.","aria-label":"Tasting notes"}}],"anatomy":[{"part":"root","element":"input","description":"input or textarea No wrapper: the control is the root, so class and style land on this outermost element (what a caller sizes and places); every other attribute stays on the control."}],"events":{"input":"(value: string)"},"states":["hover","focus","invalid","disabled"],"tokens":["color.field","color.surface","color.hover","color.ink","color.ink-3","color.accent","color.accent-tint","color.red","color.red-tint","shadow.hairline","radius.control","text.xs","text.sm","font.mono","duration.fast","duration.base"],"a11y":{"keyboard":["Standard text editing; Tab moves on"],"notes":["Every field needs a name: a Field label (wired by Ark's field context) or an aria-label.","Inside a Field the control is described by the helper or the error (aria-describedby) and marked aria-invalid; the error should say how to fix the problem.","Text is at least 16px on touch devices so iOS does not zoom the page on focus.","Set type, inputmode, autocomplete and enterkeyhint for the data the field collects."]},"motion":["focus ring and invalid ring: box-shadow over duration.base, ease","hover (pointer only): background over duration.fast, ease"]}