vue
<template>
<NbTextInput
v-model="value"
label="Label"
placeholder="Placeholder"
helper="Helper text"
/>
</template>Sizes
The four sizes are the same heights as NbButton's, so a field and a button of the same size line up.
Validation states
error takes priority over warning, which takes priority over helper.
Disabled and read-only
Content
- The label is a noun phrase of one to three words, sentence case, no colon and no period:
Email address,Project name. - A placeholder is optional, and the default is none. When you add one it shows the shape of the value (
ACME-1024), never an instruction, and never anything the user needs once they start typing. helpersays what the user needs before they answer, as a sentence with a period, or a fragment without one (Maximum 200 characters).errornames the fix, not the failure:Enter a work email address, notInvalid input. Two lines at most.- State a limit the user can hit. With
maxlength, addshow-countso the limit is visible before it stops them.
Casing, punctuation and tone are set library-wide, not by this component: Writing style is the source.