react-just-ui
v0.4.2
Published
UI components library for react.
Downloads
578
Readme
react-just-ui
UI components library for react.
Features
- Simple integration
- Supports react-hook-form
- Elastic textarea
- Display validation error
- Simple styling width css variables
- Code size 12.03 kB (4.26 kB compressed)
- Style size 14.41 kB (2.69 kB compressed)
Installation
npm install react-just-ui
Add imports in index.tsx
import 'react-just-ui/theme/minimal.css';
Usage
All the props are passed to the input inside the component, and the internal input is tipped out through the ref. So any component can be used as a regular form element.
<Input
id="text-input"
label="first_name"
hint="first_name_hint"
error={errors?.text}
value={vaue}
onChange={event => setValue(event.target.value)}
/>
There is a demo project in the demo folder, where there are examples of using all form elements.