Input - Text
Last updated: 9/21/21
Input texts are used for typing information into a user text field.
Base
Use the base class pier-input-text to create a default input text
HTML markup
<input type="text" class="pier-input-text" placeholder="Enter Text" />
Sizes
Use the modifier classes pier-input-text--sm, pier-input-text--md, or pier-input-text--lg to change the size of the input-text.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--sm"
placeholder="Enter Text"
/><input
type="text"
class="pier-input-text pier-input-text--md -m-t-4"
placeholder="Enter Text"
/><input
type="text"
class="pier-input-text pier-input-text--lg -m-t-4"
placeholder="Enter Text"
/>
Error
Use the modifier class pier-input-text--error to change the state of the input text to error.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--error"
placeholder="Error"
/>
Pill
Use the modifier class pier-input-text--pill to change the state of the input text to pill.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--pill"
placeholder="Enter Text"
/>
Disabled
Use the modifier class pier-input-text--disabled to change the state of the input text to disabled.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--disabled"
placeholder="Enter Text"
/>
Cap-Left
Use the modifier classes pier-input-text--cap-left to cap the left border radius to 0 and remove left border.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--cap-left"
placeholder="Enter Text"
/>
Cap-Right
Use the modifier classes pier-input-text--cap-right to cap the right border radius to 0 and remove right border.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--cap-right"
placeholder="Enter Text"
/>
Dark
Use the modifier class pier-input-text--dark to change the style of the input text for dark UI themes.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--dark"
placeholder="Enter Text"
/>
Error Dark
Use the modifier class pier-input-text--dark pier-input-text--error to change the style of the input text to error for dark UI themes.
HTML markup
<input
type="text"
class="pier-input-text pier-input-text--dark pier-input-text--error"
placeholder="Enter Text"
/>
© 2021 Gumgum, Inc.