zod-arco-rules
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

zod-arco-rules

npm version npm downloads bundle JSDocs License

arco design vue zod validation

Install

npm i zod-arco-rules

Usage

import * as z from 'zod'
import { zodArcoRules } from 'zod-arco-rules'

const { rules, handleSubmit } = zodArcoRules(z.object({
  name: z.string().nonempty(),
  post: z.string().min(2).max(30),
  isRead: z.boolean(),
}))

Todos

  • [x] Valibot support
  • [ ] a-form validation status
  • [ ] Auto form

License

MIT License © 2024-PRESENT Kevin Kwong

Readme

Keywords

none

Package Sidebar

Install

npm i zod-arco-rules

Weekly Downloads

121

Version

0.1.0

License

MIT

Unpacked Size

186 kB

Total Files

6

Last publish

Collaborators

  • kvoon