Input
Input base layout
Username
Username
First
value:
Second
value:
Forms are a central part of every web and mobile application. They help users interact with your app. Explore Vulk forms.
Input base layout
value:
value:
Input validation layout
<template>
<Field>
<FieldLabel label="Email Address"></FieldLabel>
<Control icon="feather:mail" validation is-valid>
<VInput
placeholder="johndoe@gmail.com"
value="mymail@gmail.com"
/>
</Control>
</Field>
<Field>
<FieldLabel label="Password"></FieldLabel>
<Control icon="feather:lock" validation is-invalid>
<VInput type="password" value="" />
</Control>
</Field>
</template>
Textarea base layout
value:
Textarea no resize variation
value:
Select base layout
value:
value:
<script setup lang="ts">
const options = [
{
value: 'Hamburger',
label: 'Hamburger',
},
{
value: 'Cheeseburger',
label: 'Cheeseburger',
},
{
value: 'Burito',
label: 'Burito',
},
]
const selectOneValue = ref()
</script>
<template>
<Field>
<FieldLabel label="Choose an option"></FieldLabel>
<Control>
<VSelect
v-model="selectOneValue"
:options="options"
/>
</Control>
</Field>
</template>
Select icon layout
value:
value:
<script setup lang="ts">
const options = [
{
value: 'Hamburger',
label: 'Hamburger',
},
{
value: 'Cheeseburger',
label: 'Cheeseburger',
},
{
value: 'Burito',
label: 'Burito',
},
]
const selectOneValue = ref()
</script>
<template>
<Field>
<FieldLabel label="Choose an option"></FieldLabel>
<Control icon="feather:globe">
<VSelect
v-model="selectOneValue"
:options="options"
/>
</Control>
</Field>
</template>
Checkbox base layout
Selected: [ "Option 2" ]
<script setup lang="ts">
const options = ref(['Option 2'])
</script>
<template>
<!--Regular checkbox-->
<Checkbox
v-model="options"
name="checkbox-1"
label="Option 1"
value="Option 1"
/>
<!--Rounded checkbox-->
<Checkbox
v-model="options"
name="checkbox-2"
label="Option 2"
value="Option 2"
rounded
/>
</template>
Toggle checkbox variations
active: [ "Option 2", "Option 9" ]
<script setup lang="ts">
const options = ref(['Option 2', 'Option 9'])
</script>
<template>
<!--Thin Toggle-->
<NinjaToggle
v-model="options"
name="demo-toggle-1"
value="Option 0"
/>
<!--Switch Toggle-->
<NinjaToggle
v-model="options"
name="demo-toggle-9"
icon
flavor="switch"
color="success"
value="Option 8"
/>
</template>