Skip to content

PrimeOutputDate

A FormKit wrapper for PrimeVue's OutputDate component.

Live Example on Website

Usage

vue
<FormKit type="primeoutputdate" v-model="date" />

Object-based Example

vue
<script setup>
const schema = [
  { $formkit: 'primeOutputDate', name: 'date1', label: 'Basic' },
  { $formkit: 'primeOutputDate', id: 'date2', name: 'date2', label: 'Icon Left', iconPrefix: 'pi pi-check' },
  { $formkit: 'primeOutputDate', name: 'date3', label: 'Icon Right', help: 'Right Icon Demo', iconSuffix: 'pi pi-check text-yellow-500' },
]
const data = { date1: new Date(), date2: new Date(), date3: new Date() }
</script>

<template>
  <FormKit :schema="schema" :data="data" />
</template>

Props

NameTypeDescription
iconPrefixstringIcon for prefix
iconSuffixstringIcon for suffix
prefixstringPrefix text
suffixstringSuffix text
......See PrimeOutputDate source for all props

See PrimeOutputDate source for more details.

FormKit PrimeVue Module