Skip to main content

How to design (structure) a text-field component - with realworld-enterprise-design-system example

Intro

In this guide, we will learn how to..

  • Create a base text-field component
  • Create a variant text-field with states such as

Anatomy

Tokens

  • (color) input-value
    • input-value/placeholder
    • input-value/default

Transformation

FAQ

  • Q: How do I handle the password type field?
    • A: Use a combo of text-field's trailing slot and your own show/hide toggle button - follow this read

Next - TextFormField