List Input

ListInput Props

Name
Type
Default
Description

accept

string | number

Value of input's native "accept" attribute

autocapitalize

string

Value of input's native "autocapitalize" attribute

autocomplete

string

Value of input's native "autoComplete" attribute

autocorrect

string

Value of input's native "autocorrect" attribute

autofocus

boolean

Value of input's native "autofocus" attribute

autosave

string

Value of input's native "autosave" attribute

clearButton

boolean

false

Adds input clear button

colors

object

Object with Tailwind CSS colors classes

colors.bgIos

string

''

colors.bgMaterial

string

'bg-md-light-surface-variant dark:bg-md-dark-surface-variant'

colors.errorBorder

string

'border-red-500'

colors.errorText

string

'text-red-500'

colors.labelTextFocusIos

string

''

colors.labelTextFocusMaterial

string

'text-md-light-primary dark:text-md-dark-primary'

colors.labelTextIos

string

''

colors.labelTextMaterial

string

'text-md-light-on-surface-variant dark:text-md-dark-on-surface-variant'

colors.outlineBorderFocusIos

string

'border-primary'

colors.outlineBorderFocusMaterial

string

'border-md-light-primary dark:border-md-dark-primary'

colors.outlineBorderIos

string

'border-black border-opacity-30 dark:border-white dark:border-opacity-30'

colors.outlineBorderMaterial

string

'border-md-light-on-surface dark:border-md-dark-on-surface'

colors.outlineLabelBgIos

string

'bg-ios-light-surface-1 dark:bg-ios-dark-surface-1'

colors.outlineLabelBgMaterial

string

'bg-md-light-surface dark:bg-md-dark-surface'

component

string

'li'

Component's HTML Element

disabled

boolean

Marks input as disabled

dropdown

boolean

false

Renders additional dropdown icon (useful to use with select inputs)

error

string

Content of the input "error"

floatingLabel

boolean

false

Makes floating label

info

string

Content of the input "info"

inputClass

string

Additional input styles

inputId

string

Input id attribute

inputmode

string

Value of input's native "inputmode" attribute

inputStyle

CSSProperties

Additional input classes

label

string

Label content

max

string | number

Value of input's native "max" attribute

maxlength

string | number

Value of input's native "maxlength" attribute

min

string | number

Value of input's native "min" attribute

minlength

string | number

Value of input's native "minlength" attribute

multiple

boolean

Value of input's native "multiple" attribute

name

string

Input name

outline

boolean

undefined

Renders outline-style input (with border around), overwrites outlineIos and outlineMaterial

outlineIos

boolean

false

Renders outline-style input (with border around) in iOS theme

outlineMaterial

boolean

false

Renders outline-style input (with border around) in Material theme

pattern

string

Value of input's native "pattern" attribute

placeholder

string | number

Input placeholder

readonly

boolean

Marks input as readonly

required

boolean

Marks input as required

size

string | number

Value of input's native "size" attribute

spellcheck

string

Value of input's native "spellcheck" attribute

step

string | number

Value of input's native "step" attribute

tabindex

string | number

Value of input's native "tabindex" attribute

type

string

'text'

Input type

value

any

Input value

ListInput Events

Name
Type
Description

blur

function(e)

blur event handler

change

function(e)

change event handler

clear

function(e)

clear event handler

focus

function(e)

focus event handler

input

function(e)

input event handler

ListInput Slots

Name
Description

error

Content of the input "error"

info

Content of the input "info"

input

Custom input element

label

Label content

media

Content of the list item "media" area (e.g. icon)

Examples

Last updated