🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@kylegl/vue-hooks-form-monorepo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kylegl/vue-hooks-form-monorepo

Vue Composition API for validating form.

latest
Source
npmnpm
Version
0.0.15-beta.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-hooks-form

Inspired by react-hook-form, if you love react-hook-form usage, come on and try it!

Documentation | Getting Started | Playground



Features

  • Type Strong: Written in TypeScript
  • No Component: No need to import any components to use, you can use it in all UI framework
  • Easy to use: Just 1 main hooks: useForm
<script setup lang="ts">
import { useForm } from '@vue-hooks-form/core'
interface Inputs {
  username: string
}
const {
  register,
  formState: { errors },
  handleSubmit,
} = useForm<Inputs>()
</script>

<template>
  errors: {{ errors }}
  <form @submit.prevent="handleSubmit()()">
    <input
      :="register('username', {
        required: 'username field cannot be empty!'
      })"
    >
    <button type="submit">
      submit
    </button>
  </form>
</template>

Credits

Thanks to:

License

MIT License © 2023-Present Elone Hoo

Keywords

composition

FAQs

Package last updated on 06 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts