vue-formify
TypeScript icon, indicating that this package has built-in type declarations

1.2.7 • Public • Published

Build powerful, type-safe forms in Vue.

VueFormify is a form-building library for Vue that simplifies creating both simple and complex forms. It offers type safety and a minimal bundle size (~4kb gzipped), making it both secure and efficient.

Features

  • Type Safe: Ensures accurate data types and autocompletion across fields.
  • Auto Collect Values: Seamlessly gathers form data.
  • Supports Nested Objects and Arrays: Easily handle complex data structures.
  • Easy Third-Party Integrations: Flexible to work with other libraries.
  • Customizable Components: Easily build and integrate custom components.
  • Lightweight: Small footprint for a faster, more responsive app.

📚 Documentation

Read more in the documentation

📦 Install

npm i vue-formify

💻 Usage

Basic

<script lang="ts" setup>
import { useForm } from 'vue-formify';

type FormData = {
  username: string;
  password: string;
}

const {
  Form,
  Field,
  Error,
  handleSubmit,
} = useForm<FormData>();

const sendForm = handleSubmit((data) => {
	console.log(data)
})

</script>

<template>
	<Form @submit="sendForm">
		<Field name="email" as="input" />
		<Error error-for="email" />
		<button>Send</button>
	</Form>
</template>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.733latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.733
1.2.66
1.2.52
1.2.42
1.2.33
1.2.21
1.2.11
1.2.01
1.1.42
1.1.31
1.1.21
1.1.11
1.1.01
1.0.171
1.0.161
1.0.151
1.0.141
1.0.131
1.0.121
1.0.111
1.0.101
1.0.91
1.0.81
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01
0.0.401
0.0.391
0.0.381
0.0.371
0.0.361
0.0.351
0.0.341
0.0.331
0.0.321
0.0.311
0.0.301
0.0.291
0.0.281
0.0.271
0.0.261
0.0.251
0.0.241
0.0.231
0.0.221
0.0.211
0.0.201
0.0.191
0.0.181
0.0.171
0.0.161
0.0.151
0.0.145
0.0.132
0.0.122
0.0.112
0.0.102
0.0.92
0.0.82
0.0.72
0.0.62
0.0.52
0.0.42
0.0.32
0.0.22

Package Sidebar

Install

npm i vue-formify

Weekly Downloads

112

Version

1.2.7

License

MIT

Unpacked Size

50.5 kB

Total Files

6

Last publish

Collaborators

  • mateenagy