Field
State belongs to the parent. Compose this component with the props and slots below.
Preview
Usage
<script setup lang="ts">
import { ref } from 'vue'
import { FzField } from '@chrisdalbano/forza-ui'
const name = ref<string>('')
</script>
<template>
<FzField v-model="name" label="Build name" />
</template>Import the shared stylesheet once and wrap your app in .fz-theme. See installation.
Props
| Name | Type | Required | Default |
|---|---|---|---|
label | string | Yes | None |
hint | string | undefined | No | None |
error | string | undefined | No | None |
placeholder | string | undefined | No | None |
disabled | boolean | undefined | No | None |
type | "text" | "search" | "email" | undefined | No | None |
modelValue | string | Yes | None |
Events and state
v-model: string
update:modelValue:[value: string]
Slots
leading, trailing
Add from source
sh
forza add fieldSet up the CLI first. Generated API tables come from the Vue source, using Vue Language Tools.