Empty values
With an empty value the placeholder renders muted in presentation mode, so the affordance stays discoverable.
vue
<NbInlineEdit
v-model="subtitle"
label="Subtitle"
placeholder="Add a subtitle..."
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | string | — | Current value |
label | string | — | Accessible name; required |
placeholder | string | — | Muted text when the value is empty |
size | 'md' | 'lg' | 'xl' | 'md' | Type scale of presentation and edit modes |
disabled | boolean | false | Presentation only; editing cannot be entered |
Events
| Event | Payload | When |
|---|---|---|
update:modelValue | string | Live, on every keystroke while editing |
commit | string | Enter or blur ended the edit |
cancel | — | Escape ended the edit; the value reverted |
Exposed
| Member | Description |
|---|---|
start() | Enter edit mode programmatically |
Accessibility
- Presentation mode is a real
buttonwhose accessible name carries the label, the current value, and the edit affordance. - The input takes the
labelas itsaria-label, receives focus with the value selected, and hands focus back naturally on commit. disabledkeeps the text readable while removing the interactive affordance.