react-just-ui
v0.5.21
Published
UI components library for react.
Downloads
618
Readme
UI components library for react.
Features
- Simple integration
- Supports react-hook-form
- Elastic textarea
- Simple styling width css variables
- Display validation error
- Full Documentation.
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)}
/>