Text & Textarea
Use .c-txt components to
style form text fields. Child component classes are shown below.
Hint text may also appear below the input field.
The unmodified
.c-txt
occupies 100% of the width of its container. The following fields are contained
by a 370px wrapper.
Using a grid layout, field labels and inputs may be positioned side-by-side.
Modifiers
Use the
.c-txt--inline
class modifier to layout text controls inline.
Apply a .c-txt__input--tag
modifier class to inputs that are used to hold
.c-tag
elements.
The .c-txt__input--media
modifier removes default padding and acts as a flex container for it's
contents. Both start and end media are available.
Add the
.c-txt__input--area
modifier class to style <textarea> elements. Specify
the textarea's rows attribute to control the height.
States
Types
The fields shown below demonstrate how
.c-txt__input works in combination with
various input types. In general, we attempt to knock out non-standard
browser features (spinners, clear buttons, etc). Styling from the
.c-txt__input--select
dropdown modifier is added to fields that
support native calendar pickers.