@gxxc/solid-forms
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Solid Forms (WIP)

THIS IS A WORK IN PROGRESS

Solid Forms is a library for creating forms with SolidJS

Usage

Installation

npm install solid-forms

Include in your project

import { InputField, PasswordField, useForm } from '@gxxc/solid-forms';

import { InputField, PasswordField, useForm } from '@gxxc/solid-forms';

interface LoginFormProps {
  email: string;
  password: string;
}

function Login() {
  const form = useForm<LoginFormProps, LoginFormProps>();

  return (
    <div>
      <form.Form>
        <InputField name='email' label='tester input' />
        <PasswordField name='password' label='tester password' />
      </form.Form>
    </div>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @gxxc/solid-forms

Weekly Downloads

5

Version

0.0.7

License

none

Unpacked Size

438 kB

Total Files

4

Last publish

Collaborators

  • gxxc