Input
Examples
Text input with border
Text input without border
Ghost (no background)
Input with colors
<div class="text-center">
<dv-input
variant="primary"
class="w-full max-w-xs"
placeholder="primary color"
/>
<div class="py-1" />
<dv-input
variant="secondary"
class="w-full max-w-xs"
placeholder="secondary color"
/>
<div class="py-1" />
<dv-input
variant="accent"
class="w-full max-w-xs"
placeholder="accent color"
/>
<div class="py-1" />
<dv-input variant="info" class="w-full max-w-xs" placeholder="info color" />
<div class="py-1" />
<dv-input
variant="success"
class="w-full max-w-xs"
placeholder="success color"
/>
<div class="py-1" />
<dv-input
variant="warning"
class="w-full max-w-xs"
placeholder="warning color"
/>
<div class="py-1" />
<dv-input variant="error" class="w-full max-w-xs" placeholder="error color" />
</div>
vue
Input size
<div class="text-center">
<dv-input size="xs" class="w-full max-w-xs" placeholder="xs size" />
<div class="py-1" />
<dv-input size="sm" class="w-full max-w-xs" placeholder="sm size" />
<div class="py-1" />
<dv-input size="md" class="w-full max-w-xs" placeholder="md size" />
<div class="py-1" />
<dv-input size="lg" class="w-full max-w-xs" placeholder="lg size" />
</div>
vue
Disabled
Input
Attributes
name | description | type | default |
---|---|---|---|
variant | input color type | neutral, primary, secondary, accent, info, success, warning, error, ghost | neutral |
size | input size | ISize | md |
border | input border | boolean | true |
v-model | v-model for input value | string | - |