Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thekaganugur/formik-chakra-ui
Chakra-UI bindings for Formik
https://github.com/thekaganugur/formik-chakra-ui
chakra-ui formik
Last synced: about 2 months ago
JSON representation
Chakra-UI bindings for Formik
- Host: GitHub
- URL: https://github.com/thekaganugur/formik-chakra-ui
- Owner: thekaganugur
- License: mit
- Created: 2020-09-17T05:56:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T12:28:17.000Z (11 months ago)
- Last Synced: 2024-05-10T01:07:05.375Z (7 months ago)
- Topics: chakra-ui, formik
- Language: TypeScript
- Homepage:
- Size: 3.04 MB
- Stars: 144
- Watchers: 2
- Forks: 26
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-chakra-ui - Formik-chakra-ui - UI bindings for Formik. (๐ ๏ธ Tools)
- awesome - thekaganugur/formik-chakra-ui - Chakra-UI bindings for Formik (TypeScript)
README
# Chakra UI Bindings for Formik ๐งต
Bindings for using [Formik](https://github.com/jaredpalmer/formik) with [Chakra UI](http://next.chakra-ui.com).
[![license](https://badgen.now.sh/badge/license/MIT)](./LICENSE)
![npm](https://img.shields.io/npm/dt/formik-chakra-ui)## Why?
[Inversion of Control](https://kentcdodds.com/blog/inversion-of-control) is
really cool and [Compound Components](https://kentcdodds.com/blog/inversion-of-control#compound-components) do provide really flexible API.Yet this library is opinionated, provides bindings for Formik, with necessary paddings etc. You can easily opt-out continue to use Chakra UI if you need custom components. But this library will support %90 of the use-cases when building forms.
## Getting started
`yarn add @chakra-ui/react @emotion/react @emotion/styled framer-motion formik formik-chakra-ui`
Or
`npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion formik formik-chakra-ui`
Than setup providers.
```jsx
import * as React from 'react';
// 1. import `ChakraProvider` component
import { ChakraProvider } from '@chakra-ui/react';function App() {
// 2. Use at the root of your app
return (
);
}
```## Documentation
All documentation can be found [here](https://629c67f66924e51a45fb2029--gregarious-marshmallow-00a41c.netlify.app/)
## Example
[Codesandbox example](https://codesandbox.io/s/formik-chakra-ui-27yzm?file=/src/Form.tsx)
## Roadmap
### Components
- [x] Button
- [x] Checkbox
- [x] Input
- [x] Number Input
- [x] Pin Input
- [x] Radio (``)
- [x] Rendering util function/component for ``
- [x] Select
- [x] Slider
- [x] Switch
- [x] Textarea### Utility Components
- [x] Submit button
- [x] Reset button
- [x] Form progress