vue
<template>
<NbSelect
v-model="locale"
label="Locale"
:options="[
{ label: 'English', value: 'en' },
{ label: 'Portuguese', value: 'pt' },
{ label: 'Spanish', value: 'es' },
]"
/>
</template>Validation states
Disabled
Content
- The label names the thing being chosen, not the action:
Role, notSelect a role. - Options are sentence-case nouns, sorted the way a reader scans them: by frequency for short lists, alphabetically for long ones. No trailing periods.
- The placeholder for an empty select is optional. When used, it says what is missing (
No role), neverPlease select.... - The search box says
Search, with no ellipsis. OverridesearchPlaceholderonly to name what is searched (Search members).
Casing, punctuation and tone are set library-wide, not by this component: Writing style is the source.