0.3.0 • Published 3 years ago
minima-ui v0.3.0
Minima UI
This is a library of reusable React UI components created with simplicity, customization and accessibility in mind.
The library is written in TypeScript. It utilizes styled-components for styling and Jest for testing.
Components
The library includes the following components:
Containers
- Table - a virtualized table with sorting and column resizing that allows custom cell renderers;
- Tooltip - a wrapper around an element that shows a tooltip on hover;
- Modal - a modal dialog.
Inputs
- Button - a basic button;
- CheckBox - a basic checkbox;
- Switch - a button that allows the user to switch between "on" and "off" states;
- TextInput - a text input component that support single- and multi-line modes;
- ComboBox - a control allowing the user to search and select among a list of options;
- RadioGroup - a control allowing the user select an option among a list of radio buttons;
- Slider - a slider with multi-thumb support.
Display
- Icon - an SVG icon component that is easily scalable and includes a few preset icons;
- ProgressBar - a basic progress bar.
Utility
- List - a basic virtualized list/
Installation and usage
To install minima-ui, use the following command:
npm i minima-ui
To use the library in your app, import one or more of the included components:
import {useState} from 'react';
import {ComboBox} from 'minima-ui';
const App = (): JSX.Element => {
const [value, setValue] = useState(0);
return <div>
<ComboBox
options={Array.from({length: 1000}, (v, i) => ({
value: i,
label: `Option ${i+1}`
}))}
value={value}
onChange={setValue}
/>
</div>;
};
export default App;
Documentation
The library uses Storybook for documentation.
The GitHub Page with the Storybook is available here.