New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@saas-ui/forms

Package Overview
Dependencies
Maintainers
0
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saas-ui/forms

Fully functional forms for Chakra UI.

  • 2.11.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Forms Manager

Powerfull forms library for Chakra UI. Create typesafe React forms with speed.

Supports Zod, Yup and AJV for validation and form generation.

  • Docs

Installation

$ yarn add @saas-ui/forms

#or

$ npm i @saas-ui/forms  --save

Usage with Zod

AutoForm

Generate forms from schema.

import { createZodForm } from '@saas-ui/forms/zod'

const { AutoForm } = createZodForm()

const schema = z.object({
  name: z.string(),
})

function App() {
  const onSubmit = (data: z.infer<typeof schema>) => {}
  return <AutoForm schema={schema} onSubmit={onSubmit} />
}

Form

Create custom typesafe forms.

import { FormLayout, createZodForm } from '@saas-ui/forms/zod'

const { Form, SubmitButton } = createZodForm()

const schema = z.object({
  name: z.string()
})

function App() {
  const onSubmit = (data: z.infer<typeof schema>) => {}

  return (
    <Form schema={schema} onSubmit={onSubmit}>
        {({ Field }) => (
            <FormLayout>
                <Field name="name" type="text" />
                <SubmitButton>Save</SubmitButton>
            </FormLayotu>
        )}
    </Form>
  )
}

Source

https://github.com/saas-js/saas-ui/tree/next/packages/saas-ui-forms

License

MIT - Appulse Software

Keywords

FAQs

Package last updated on 13 Jan 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc