Field

Field provides consistent styling and behavior for form inputs.

Overview API

Usage


  <wc-field label="Email" helper-text="We never share your email">
    <input type="email" placeholder="name@example.com">
  </wc-field>

  <wc-field label="Username" required="true" error="true" error-text="Username is required">
    <input value="john_doe">
  </wc-field>

On this page

Properties

Events

Methods

CSS Custom Properties