Skip to content
On this page

input

mit einem lustigen Hinweis
with a hint
with a hint

template

html
<bunt-input id="input-normal" v-model="inputText" name="an-input" label="ein lustiges Eingabefeld" hint="mit einem lustigen Hinweis"/>
<bunt-input id="input-password" v-model="inputText" type="password" name="password-input" label="Password"/>
<bunt-input id="input-disabled" value="a disabled value" name="disabled-input" label="this input is disabled" hint="with a hint" :disabled="true"/>
<bunt-input id="input-placeholder" v-model="inputText" name="input-placeholder" placeholder="I am a placeholder, not a label" icon="search" />
<bunt-input id="input-compact" v-model="inputText" name="compact-input" label="a compact input"/>
<bunt-input id="input-large" v-model="inputText" name="large-input" label="a large input"/>

<div class="dark-background">
	<bunt-input id="input-dark" v-model="inputText" name="dark-input" label="an input on dark background" hint="with a hint"/>
</div>

style

stylus
#input-normal, #input-password, #input-disabled, #input-placeholder
	width: 420px
	input-style()
#input-compact
	width: 420px
	input-style(size: 'compact')
#input-large
	width: 420px
	input-style(size: 'large')
#input-dark
	width: 420px
	input-style(style: 'dark')

props

proptyperequireddefaultdescription
typestringfalse'text'native input type
namestringtruenative input name
labelstringfalsefloating label
placeholderstringfalsenative placeholder text
hintstringfalsehint text
hintIsHtmlbooleanfalsefalsepass hint through v-html (potentially unsave)
iconstringfalsemdi icon name to display
valuestring|numberfalse''value (or use v-model)
disabledbooleanfalsefalsedisables input
validationobjectfalsevuelidate object (see validation)

slots

slotdescription

events

eventargsdescription
inputvalueemitted on every keypress or input (or use v-model)

style mixin parameters

parametertypedefaultdescription
style'light', 'dark''link'button style
size'dense', 'large', 'compact''dense'input size (compact does not reserve space for a hint)

Released under the MIT License.