Skip to content

rInput

A customizable and validated input component built with VeeValidate. It uses useField under the hood to integrate seamlessly with form validation.

Props

NameTypeDefaultRequiredDescription
namestringThe name of the input, required for VeeValidate integration.
idstringUnique identifier for the input element.
labelstringOptional label text rendered above the input.
typeInputTypeHTMLAttribute'text'The HTML type attribute (e.g. text, email, password, etc.).
placeholderstringPlaceholder text shown when input is empty.
disabledbooleanfalseDisables the input field when set to true.
uiPartial<ComponentSlots<typeof rInputStyles.slots>>Object for passing custom class overrides for each slot.

Slots

None.

Emits

This component does not emit custom events. It uses v-model via VeeValidate's useField() to bind and validate its value.

Usage Examples

✅ Basic Input

vue
<template>
  <rInput id="signInEmail" name="email" label="E-mail" type="email" />
</template>

For whole code example with rForm see rForm.

Made with ♥️ by Riešenia