Forms
VD3 UI ships framework-wide defaults for native form controls. Use the documented .vd-* form classes for stable component markup, and load app-specific overrides after VD3 UI when embedding into an existing design system. In Vue 3, the <VdInput> component (below) wraps this markup with label / hint / error / prefix / suffix props.
VdInput — label / hint / error / prefix / suffix

The Vue 3 <VdInput> bundles the common field anatomy — label, helper text, validation message and affixes — into one component on the unified status-variant palette. type="number" binds a real number.

As it appears on your card.
Enter a valid email address.
$USD

Bound value: 42 (number)

@
That username is available.

Usage

<script setup lang="ts">
import { VdInput } from "@vanduo-oss/vd3";
const email = ref("");
const amount = ref(0);
</script>

<template>
  <!-- Label + helper text -->
  <VdInput v-model="email" type="email" label="Email"
           hint="We'll never share it." />

  <!-- Error message also styles the field as danger -->
  <VdInput v-model="email" type="email" label="Email"
           error="Enter a valid email address." />

  <!-- Prefix / suffix + number model (emits a number) -->
  <VdInput v-model="amount" type="number" label="Amount"
           prefix="$" suffix="USD" />
</template>

Component API

Prop / eventDescription
v-model (modelValue)Two-way value. Emits a number when type="number", otherwise a string.
:labelField label rendered above the input.
:hintHelper text below the input (hidden when error is set).
:errorError message; its presence also styles the input as danger.
:prefix / :suffixStatic text/symbol before / after the input. #prefix / #suffix slots override the text props.
:revealPasswordWhen type is password, render a type=button that toggles password ↔ text (aria-pressed, eye / eye-slash). Never autocomplete=off.
:requiredMarks the visible label with .label-required.
:variant'success' | 'danger' validation state (error implies danger).
:size'sm' | 'md' | 'lg' input height (default 'md').
native attrstype, placeholder, disabled, readonly, required, min/max/step, minlength, maxlength, pattern, autocomplete, autocapitalize, spellcheck, inputmode, enterkeyhint…
@blur / @focusForwarded focus events.
Grouped inputs — VdCheckboxGroup / VdRadioGroup / VdSelect

Three Vue 3 wrappers build a full option group from a :options array and a v-model — a multi-select checkbox set, a single-choice radio set, and a themed native <select>.

Selected: a11y

Plan: pro

Framework: —

Usage

<script setup lang="ts">
import { ref } from "vue";
import { VdCheckboxGroup, VdRadioGroup, VdSelect } from "@vanduo-oss/vd3";

const checks = ref<string[]>(["a11y"]);
const plan = ref("pro");
const framework = ref("");
</script>

<template>
  <VdCheckboxGroup
    v-model="checks"
    name="features"
    :options="[
      { value: 'a11y', label: 'Accessibility' },
      { value: 'ssr',  label: 'SSR-safe' },
    ]"
  />

  <VdRadioGroup
    v-model="plan"
    name="plan"
    :options="[
      { value: 'free', label: 'Free' },
      { value: 'pro',  label: 'Pro' },
    ]"
  />

  <VdSelect
    v-model="framework"
    name="framework"
    placeholder="Choose a framework"
    :options="[
      { value: 'vue',  label: 'Vue 3' },
      { value: 'nuxt', label: 'Nuxt' },
    ]"
  />
</template>

Component API (Vue 3)

ComponentProps (v-model + options)
VdCheckboxGroupv-model (string[]) · :options ({ value, label, disabled? }) · :name · :inline · :size · :disabled
VdRadioGroupv-model (string) · :options ({ value, label, disabled?, icon? }) · :name · :inline · :size · :disabled
VdSelectv-model (string) · :options ({ value, label, disabled? }) · :name · :id · :placeholder · :disabled · :required
VdCheckboxv-model (boolean) · :label · :disabled · :size (sm|md|lg) · :name · :id · default slot (label override)
VdOtpInputv-model (string) · :length (default 6) · :disabled · :name · :id · :labelledBy
VdCustomSelectv-model (string) · :options ({ value, label, disabled? }) · :id · :name · :placeholder (default "Select...")
Input Fields
Choose an option
Option 1
Option 2
Option 3

Custom-select wiring (other inputs are pure CSS):

Form Controls
Form Validation States
Input Groups
USD
https:///api
Input Sizes
Password Toggle
Class Reference
ClassDescriptionType
.vd-form-groupWrapper for form controls (adds margin, stacking)Structure
.vd-inputBase styling for text, email, password, selectBase
.vd-input-smCompact input height and font sizeSize
.vd-input-lgTaller input height and larger font sizeSize
.vd-input-groupWrapper for input + prefix/suffix buttons or textStructure
.vd-input-group-prefixText or icon before the input inside a groupStructure
.vd-input-group-suffixText or icon after the input inside a groupStructure
.vd-input-revealVdInput password-reveal control (type=button, aria-pressed)Modifier
.textareaBase styling for multiline text inputsBase
.checkboxWrapper for custom checkbox controlsStructure
.radioWrapper for custom radio button controlsStructure
.switchWrapper for toggle switch controlsStructure
.rangeCustom styling for range/slider inputsBase
.vd-input-validApplies success indicator and green borderState
.vd-input-invalidApplies error indicator and red borderState
.vd-form-feedbackBase class for validation message textStructure
.vd-form-feedback-validSuccess validation message (green)State
.vd-form-feedback-invalidError validation message (red)State
disabledNative attribute to disable any form controlState (attr)