Skip to content

InlineEdit API

API reference docs for the Stash InlineEdit component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import InlineEdit from '@leaflink/stash/InlineEdit.vue';

Props

NameTypeDefaultDescription
errorTextstring '' Error text to display. Replaces `hintText` (if provided) & adds error styling.
format"currency" | "percent" | ""Formats the value displayed. Options: currency, percent
hintTextstring '' Hint text to display below the input
labelstring ' ' Label to render for the input
modelValuestring | numberundefinedThe current value for the component.
oldValuestring | numberundefinedUsed to display a crossed out value below the component if the current `modelValue` does not match `oldValue`.
placeholderstring '' Placeholder for the input
typestring 'text' DOM `type` property to be passed to `ll-input`. Use type="number" for localized numbers

Slots

NameDescription
prependrenders content on the left side of the input
appendrenders content on the right side of the input

Events

NameDescription
update:model-valueEmitted when the value is updated