Skip to content
Browse library
Dema
Components

TextField

A label, input, and connected hint or error.

Ask about the work or how it was built.
Controls
Example
<TextField label="Your question" placeholder="What are you curious about?"
  value={question} onChange={(event) => setQuestion(event.target.value)}
  hint="Ask about the work or how it was built."
/>

Props

Generated from design-system/TextField.tsx. Native HTML and accessibility props are forwarded. className and style are excluded.

PropTypeRequiredDefault
labelstringYesNone
hintstringNoNone
errorstringNoNone

View TextField source · design-system/TextField.tsx:7