Skip to content

FormOutputDate ​

A FormKit wrapper for OpenVue's OutputDate component.

Live Example on Website

Usage ​

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

Object-based Example ​

vue
<script setup>
const schema = [
  { $formkit: 'formOutputDate', name: 'date1', label: 'Basic' },
  { $formkit: 'formOutputDate', id: 'date2', name: 'date2', label: 'Icon Left', iconPrefix: 'oi oi-check' },
  { $formkit: 'formOutputDate', name: 'date3', label: 'Icon Right', help: 'Right Icon Demo', iconSuffix: 'oi oi-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 FormOutputDate source for all props

See FormOutputDate source for more details.

FormKit OpenVue Module