All Projects β†’ KaiHotz β†’ React Formik Ui

KaiHotz / React Formik Ui

Licence: mit
A simple component library, composed out of pure HTML form elements to make your live easier composing forms with Formik and React

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to React Formik Ui

react-circle-flags
πŸš€ A React component with a collection of 300+ minimal circular SVG country flags. Wrapper of HatScripts/circle-flags
Stars: ✭ 29 (-81.17%)
Mutual labels:  react-components, javascript-library
React Border Wrapper
A wrapper for placing elements along div borders.
Stars: ✭ 147 (-4.55%)
Mutual labels:  react-components, javascript-library
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+8056.49%)
Mutual labels:  react-components, javascript-library
React Rainbow
🌈 React Rainbow Components. Build your web application in a snap.
Stars: ✭ 1,662 (+979.22%)
Mutual labels:  react-components, javascript-library
Stardust
🎨Tiller Design System
Stars: ✭ 19 (-87.66%)
Mutual labels:  react-components, javascript-library
React Json Schema
Configure and build views using JSON schemas mapped to React components
Stars: ✭ 131 (-14.94%)
Mutual labels:  react-components, javascript-library
Styleguide
The VTEX Design System and React component library.
Stars: ✭ 138 (-10.39%)
Mutual labels:  react-components
Extract React Types
One stop shop to document your react components.
Stars: ✭ 141 (-8.44%)
Mutual labels:  react-components
Photojshop
🎨 Photo editing JavaScript library
Stars: ✭ 137 (-11.04%)
Mutual labels:  javascript-library
Javali
πŸ— Create a modern JavaScript library that uses ES6 + Jest
Stars: ✭ 144 (-6.49%)
Mutual labels:  javascript-library
React Free Style
Make React components easier and more maintainable by using inline style objects
Stars: ✭ 135 (-12.34%)
Mutual labels:  react-components
Typeit
The most versatile JavaScript typewriter effect library on the planet.
Stars: ✭ 2,406 (+1462.34%)
Mutual labels:  javascript-library
React Code Blocks
React code blocks and code snippet components
Stars: ✭ 135 (-12.34%)
Mutual labels:  react-components
Fluentui
Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
Stars: ✭ 12,587 (+8073.38%)
Mutual labels:  react-components
Liowebrtc
An event-based WebRTC library that makes it easy to embed real-time peer to peer communication into UI components.
Stars: ✭ 138 (-10.39%)
Mutual labels:  javascript-library
Vivid
a JavaScript library which is built to easily customize and use the SVG Icons with a blaze.
Stars: ✭ 1,797 (+1066.88%)
Mutual labels:  javascript-library
Tabler React
React components and demo for the Tabler UI theme.
Stars: ✭ 1,830 (+1088.31%)
Mutual labels:  react-components
Jscalendar
Just a simple javascript calendar
Stars: ✭ 142 (-7.79%)
Mutual labels:  javascript-library
React Live Chat Loader
Implement a live chat beacon in your React application without performance regressions.
Stars: ✭ 145 (-5.84%)
Mutual labels:  react-components
Raven Weapp
Sentry SDK for WeApp
Stars: ✭ 142 (-7.79%)
Mutual labels:  javascript-library

React-Formik-UI

NPM npm bundle size JavaScript Style Guide license npm

Overview

React-Formik-UI is a simple component library, composed out of pure HTML form elements like: form, input, select, checkbox, radio and textarea.

The Idea behind React-Formik-UI is to make the composition of forms with React and Formik even easier, so you don't have to write any HTML markup or extra components for your forms.

Each component makes use of Formiks context, there for you need to have Formik installed in your project.

NEW in v5:

Typescript: React-Formik-UI is now written in Typescript

There where several breaking changes, if you come from version 4 please refer to Migrating from v4 to v5 section in this document for all the changes

Markup, Styling and ClassNames

The markup for the components Input, PhoneInput, Select, Checkbox, Radio, Textarea, Datepicker and DropZone consists of a wrapper div, label, the main component, hint, and error message.

By default all component have NO styling applied at all. This is intentionally, so you have the possibility to apply your own styling through css or scss by passing a custom className. All the components used in the Form are scoped by the default classes, situated on the Form component, react-formik-ui form-wrapper

Each component has its corresponding component class (eg: PhoneInput component phoneInput ) followed a level deeper by its wrapper class (eg: phoneInput component phoneInput-wrapper ), as well as the class form-element.

You can pass the style prop on each component, to add custom inline styles to the component main element. Lets say you ad a style object through the style prop on the Select component, the inline styles will be applied to the select element of the Select component.

The className Prop can be passed on each component to add a css class directly to the component instead of the wrapper div, so libraries like Bootstrap can be used to style the form component.

The Styling prop: If you pass the styling prop to the Form component with structure as value, a minimal styling will be applied to add some structure to each form-element.

In case you pass the value theme through the styling prop on the Form component, the React-Formik-Ui Theme will be applied

Migrating from v4 to v5:

  • Button component has been removed, therfore you should use your own.
  • SubmitBtn component now also recieves a text prop for rnedering the text of the button
  • mode prop has been renamed to styling, the values structured and themed for the it also have been renamed to structure and theme.
  • Datepicker component has been renamed to `DatePicker``
  • The style prop has been removed form the DatePicker and PhoneInputcomponent

Installation

Note: React Formik UI makes use of the recently released react Hooks API, therefore make sure that your project uses at least React version 16.13.1

yarn add react-formik-ui

or

npm i -S react-formik-ui

Usage

Peer Dependency

React-Formik-UI has Formik, React and react-dom as Peer dependencies. So make shure to have those packages installed to your project to make use of React-Formik-UI.

yarn add formik

or

npm i -S formik

Form validations

To validate the form fields, the use of Yup is recommended.

yarn add yup

or

npm i -S yup

See the Styleguide with Demo and Examples here

Components Documentation and Examples

License

MIT Β© KaiHotz

Support

If you like the project and want to support my work, you can buy me a coffee :)

paypal

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].