lium-react-ui-library v1.0.6
lium-react-ui-library
React UI library made for a part of own challenge.
This is a simple UI library for React which one has 5 implemented components:
- Button
- Input Text
- Input Number
- Select Input
- Autocomplete
If you want to know furthermore, please visit the Demo application repositiory or visit the official page.
Install
npm install --save lium-react-ui-library
Usage
import React, { Component } from 'react';
import { Button, InputText, InputNumber, SelectInput, AutocompleteInput } from 'lium-react-ui-library';
class Example extends Component {
render() {
return (
<>
<Button text="Click here!"/>
<InputText placeholder="I am a beautiful library"/>
<InputNumber placeholder="And I am here to help you,"/>
<SelectInput title="only use my features"/>
<AutocompleteInput placeholder="And have fun!"/>
</>
);
}
}
Like you could watch, you only have to install this library in your project and then, import any component you want to use. It is not required to import any file of css to give them style, because they have a default and custom styles. Fast, simple and easy peasy. Just test it!
Developed with 🛠️
- create-react-library - Libary to create more React libraries
- JavaScript - Pogramming language
- styled components - Used library to created styles dynamically, without using any file of css.
Inside the root directory, src/components path, you can find a folder with each component. Each one has its own main file, which one is the name of the component. Then, you can find a file for styles and other file for validations. The last one, it validates all props and transform the data in variables that the component can use. Besides, each component has its own test file in the sr/test folder.
Authors ✒️
- Luis Fernando Cruces - luisfcv97@gmail.com
If you have any recomendation or something to contribute, please let me know sending a message! I will be very eager to receive it.
License
MIT © luisVidal97