Skip to content

InputOptions API

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

Import

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

Props

NameTypeDefaultDescription
disabledbooleanfalseIndicates whether the inputOptions is disabled.
errorTextstringundefinedError text to display. Replaces `hintText` (if provided) & adds error styling
hintTextstringundefinedHint text to display below the input
labelstringundefinedLabel to render for the datepicker
modelValue{ value: string; option?: SelectedOption }() => ({ value: , option: undefined })The current value inclusive of the input & select
noTruncatebooleanfalsePrevents the Selected Option from being truncated, if true
optionsArray() => []Options for the select
placeholderstringundefinedPlaceholder text for the input **Note:** placeholders should be used to display examples; they should not be used as labels because they are not accessible as labels. If a real label cannot be used, use the `aria-label` attribute.
typeTSConditionalTypetextInput type

Slots

NameDescription
hintHint slot for rendering text below the input

Events

NameDescription
update:model-valueEmitted when the model value changes
changeEmitted when either the input or select changes