Form

Forms are used for submitting data. Use this component to wrap any kind of form component, such as textfields, textareas, selects or checkboxes.

    Usage

    Required

    This is a description

    Error message

    <div class="c-form w-96 mb-0">
      <label class="c-form__label" htmlFor="">Label</label>
      <span class="c-form__hint">Required</span>
      <div class="c-form__element">
        <div class="c-textfield">
          <input type="text" class="c-textfield__input" placeholder="Placeholder" />
        </div>
      </div>
      <p class="c-form__description">This is a description</p>
      <p class="c-form__error">Error message</p>
    </div>

    Implementation

    TypeName
    Elements
    Wrapper.c-form
    Element.c-form__elementOptional
    Label.c-form__labelOptional
    Hint.c-form__hintOptional
    Description.c-form__descriptionOptional
    Error message.c-form__errorOptional
    ModifiersNone
    StatesNone