A Formik inspired form library that uses MobX under the hood

Overview

Formix

npm NPM GitHub Workflow Status npm

A Formik inspired form library that uses MobX under the hood and update only the changed fields.

Installation

Using npm:

npm install @euk-labs/formix mobx

Using yarn:

yarn add @euk-labs/formix mobx

Example

Creating your first input

import { useField } from '@euk-labs/formix';
import { InputHTMLAttributes } from 'react';

function TextField(
  props: InputHTMLAttributes<HTMLInputElement> & { name: string }
) {
  const { name, ...rest } = props;
  const { field } = useField(name);

  return <input {...rest} {...field} />;
}

Creating your first form

import { Formix } from '@euk-labs/formix';
import { TextField } from './TextField';

const initialValues = {
  firstName: '',
  lastName: '',
  email: '',
  password: '',
};

function handleSubmit(values) {
  console.log(values);
}

function Form() {
  return (
    <Formix initialValues={initialValues} onSubmit={handleSubmit}>
      <TextField name="firstName" placeholder="First Name" />
      <TextField name="lastName" placeholder="Last Name" />
      <TextField name="email" placeholder="E-mail" />
      <TextField name="password" placeholder="Password" />

      <button type="submit">Submit</button>
    </Formix>
  );
}
You might also like...
Skeleton React App configured with Redux store along with redux-thunk, redux persist and form validation using formik and yup

Getting Started with React-Redux App Some Configrations Needed You guys need to modify the baseUrl (path to your server) in the server.js file that is

Simple and performant form library built with MobX
Simple and performant form library built with MobX

MobX Easy Form Simple and performant form library built with MobX. Works with React, React Native and any other framework that supports MobX. Motivati

Stylin.js is a React library that provides
Stylin.js is a React library that provides "all" css attributes builtin under component.

Stylin React in-component styling, Theme-Based, Suggestive, primitive CSS allowed. Installing To install the package you must to have installed node a

Reactive MobX Form State Management
Reactive MobX Form State Management

Documentation • Live Demo • Demo Code • Tutorial • Join Slack Workspace MobX React Form Reactive MobX Form State Management Features Extensibles Valid

Whirlwind is a utility-first styling framework specifically designed for React Native. It is heavily inspired by Tachyons and Tailwind CSS and uses low-level building blocks for rapidly building custom designs.

React Native Whirlwind 🌪️ A utility-first CSS framework designed for React Native. Whirlwind is a utility-first CSS framework specifically designed f

redux higher order reducer + action to reduce actions under a single subscriber notification

redux-batched-actions Batching action creator and associated higher order reducer for redux that enables batching subscriber notifications for an arra

Chakra UI Bindings for Formik 🧵

Your Chakra-UI bindings for Formik

React native boilerplate with formik, ui kittens, eslint setup, and expo

Boilerplate for React native project All you need to make an app for react native application This project is a template starter kit with expo. Have .

Declarative React Table under 1kb
Declarative React Table under 1kb

@saltyaom/react-table Declarative React Table under 1kb. Humanity Restored Feature No dependencies. Light, 700 bytes on production. Easy to understand

React Toast Component  - Custom push notification (Toast) implementation under React + stayed by TailwindCSS.
React Toast Component - Custom push notification (Toast) implementation under React + stayed by TailwindCSS.

React Toast Component Online Demo Description This is custom toast component implemented by react hooks + React Context API and stayled using tailwind

Handling forms in React Native using Formik and Yup.

##Handling forms in React Native using Formik and Yup. Usage # install dependencies yarn install # run bundler yarn run serve # run on Android devic

React hook to clamp multiline text to a given height in a responsive way and with extreme flexibility (under 2.5kb)

use-clamp-text react hook to clamp multiline text to a given height in a responsive way and with extreme flexibility (under 2.5kb) Line Clampin’ (Trun

A user panel by using React Js with Formik and Yup for working with the inputs and make them validate 😬🔥✨
A user panel by using React Js with Formik and Yup for working with the inputs and make them validate 😬🔥✨

User Panel Usgin React ✨ 🔥 a few days ago I decided to do this project for myself as practice.This user panel created by react js and I used Formik a

Optimize nextjs performance by lazy load and hydrate under the fold
Optimize nextjs performance by lazy load and hydrate under the fold

Lazy load and hydrate component on demand. Deal with Nextjs performance without compromise.

Solana Metaplex AuctionHouse React APP based on CLI code. Code not completely working. Currently under development
Solana Metaplex AuctionHouse React APP based on CLI code. Code not completely working. Currently under development

Solana React Metaplex AuctionHouse UI test ALREADY IN DEVELOPMENT Not all function works correctly This is a simple UI app with TypeScript and Solana

forms written in react, using Formik and Yup

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

A simple react and react native form validator inspired by Laravel validation.

Simple React Validator is exactly as it sounds. We wanted to build a validator for react that had minimal configuration and felt natural to use. It's configuration and usage is similar to the Laravel PHP framework and make validation as easy as one line.

Form Builder powered by native-base & react-hook-form
Form Builder powered by native-base & react-hook-form

native-base-form-builder Form Builder written in typescript with inbuilt Validation, dropdown, autocomplete powered by react-hook-form & native-base.

Step form built using React Hook Form, Yup, Typescript, and Zustand
Step form built using React Hook Form, Yup, Typescript, and Zustand

This is a Next.js, Tailwind, and Typescript project bootstrapped using ts-nextjs-tailwind-starter created by Theodorus Clarence. See the deployment on

Comments
  • chore(deps): bump minimist from 1.2.5 to 1.2.6

    chore(deps): bump minimist from 1.2.5 to 1.2.6

    Bumps minimist from 1.2.5 to 1.2.6.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • chore(deps): bump minimatch from 3.0.4 to 3.1.2

    chore(deps): bump minimatch from 3.0.4 to 3.1.2

    Bumps minimatch from 3.0.4 to 3.1.2.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
Releases(v0.4.5)
  • v0.4.5(Jun 24, 2022)

  • v0.4.4(Jun 21, 2022)

  • v0.4.3(May 3, 2022)

    What's Changed

    • chore: removing unused dependencies by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/40

    Full Changelog: https://github.com/Eureka-Shoulders/formix/compare/v0.4.2...v0.4.3

    Source code(tar.gz)
    Source code(zip)
  • v0.4.2(Apr 8, 2022)

  • v0.4.1(Mar 22, 2022)

  • v0.4.0(Mar 22, 2022)

    What's Changed

    • feat: enableReinitialize prop by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/31
    • feat: added disabled meta prop by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/30
    • fix: debounce validation by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/34

    Full Changelog: https://github.com/Eureka-Shoulders/formix/compare/v0.3.0...v0.4.0

    Source code(tar.gz)
    Source code(zip)
  • v0.3.0(Mar 2, 2022)

    What's Changed

    • Validation updates (debounce and dynamic validation)
    • feat: reset form helper by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/24
    • fix: removed element generic types by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/26

    Full Changelog: https://github.com/Eureka-Shoulders/formix/compare/v0.2.4...v0.3.0

    Source code(tar.gz)
    Source code(zip)
  • v0.2.6(Feb 16, 2022)

    What's Changed

    • feat: reset form helper by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/24

    Full Changelog: https://github.com/Eureka-Shoulders/formix/compare/v0.2.4...v0.2.6

    Source code(tar.gz)
    Source code(zip)
  • v0.2.5(Jan 31, 2022)

  • v0.2.4(Jan 19, 2022)

  • v0.2.3(Jan 14, 2022)

  • v0.2.2(Dec 29, 2021)

  • v0.2.1(Dec 29, 2021)

    What's Changed

    • fix: lib export standard to cjs by @SampaioLeal in https://github.com/Eureka-Shoulders/formix/pull/16

    Full Changelog: https://github.com/Eureka-Shoulders/formix/compare/v0.2.0...v0.2.1

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Nov 30, 2021)

    Initial release of Formix 🎉

    • Formix component for handle form context and initiate the FormixStore
    • A default TextField to use on forms
    • A default ArrayField to use multiple fields
    • Two hooks for creating your own fields: useField and useArrayField

    Examples will be added to README

    Source code(tar.gz)
    Source code(zip)
Owner
Shoulders
Shoulders
Simple form validation library for React Native.

Foect Simple form validation library for React Native. Installing Npm npm i --save foect Yarn yarn add foect Quick Start import { TextInput, Text, V

null 38 Nov 11, 2022
📝 Form component for React Native.

Gifted Form Form component for React Native. Example var { GiftedForm, GiftedFormManager } = require('react-native-gifted-form'); var FormComponent =

Farid Safi 1.4k Dec 19, 2022
Easy react-native forms using bootstrap-like syntax with redux-form+immutablejs integration. Styled using styled-components

react-native-clean-form Easy react-native forms using bootstrap-like syntax with redux-form+immutablejs integration. Styled using styled-components Bi

Esben Petersen 475 Oct 30, 2022
A simple react-native component to wrap your form fields and get their values with just one single method.

react-native-form A simple react-native component to wrap your form fields and get their values without attaching listeners everywhere. Installation n

Juliano Duarte 145 Nov 11, 2022
Forms library for react-native

Notice tcomb-form-native is looking for maintainers. If you're interested in helping, a great way to get started would just be to start weighing-in on

Giulio Canti 3.2k Dec 17, 2022
A simple validation library for react native

react-native-form-validator A simple validation library for react native Installation Run: $ npm i react-native-validation --save Validators: matchReg

Şerafettin Aytekin 14 Mar 25, 2021
Formik-yup - React Formik-Yup sign up form

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 0 Jan 4, 2022
Formik-and-Yup-Reactjs - A React Validation form with formik and yup

Signup form with formik Create simple signup form with formik and use yup for th

Jonata Serpa 5 Sep 19, 2022
⚡️The Fullstack React Framework — built on Next.js — Inspired by Ruby on Rails

⚡️The Fullstack React Framework — built on Next.js — Inspired by Ruby on Rails

⚡️Blitz 9.4k Oct 12, 2021
⚡️The Fullstack React Framework — built on Next.js

⚡️The Fullstack React Framework — built on Next.js

⚡️Blitz 12.5k Jan 9, 2023