Basic Usage
vue
<template>
<NbLabel for="my-input">Workspace name</NbLabel>
<input id="my-input" type="text" placeholder="my-workspace" />
</template>Props
| Prop | Type | Default | Description |
|---|---|---|---|
for | string | undefined | Maps to the HTML for attribute (links to input) |
required | boolean | false | Appends a red * asterisk |
disabled | boolean | false | Reduces opacity |
size | 'sm' | 'md' | 'md' | Both render the label type set (12/16 regular) |
Slots
| Slot | Description |
|---|---|
default | The label text |