Contentstack Styleguide

3.3 #Forms.Errors Errors

Toggle example guides Toggle HTML markup

Error styles are applied when .has-error or .invalid classes match.

Example
Something went wrong!
Markup
<div class="cs-form-group">
   <label class="field-label">Name</label>
   <input type="text" class="cs-text-box w-100 has-error">
   <span class="invalid">Something went wrong!</span>
</div>
Source: 3_Form/forms.less, line 45