/thedevdesigner-react-lib

A collection of React UI components. This project initially started as a personal project, for my own learning. But anyone is welcome to join and contribute. #WeLearnTogether

Primary LanguageTypeScript

React UI Component Library

https://www.npmjs.com/package/thedevdesigner-react-lib

A collection of reusable React UI components, by yours truly, thedevdesigner.

Right now, I am coming up with a list of simple components to add in this package.

Usage

Run npm i --save thedevdesigner-react-lib in your project root (that contains the package.json file) to get started.

Example

import { Button } from 'thedevdesigner-react-lib'
...
// A simple button with just mandatory lable
// all other props take default values

<Button label="Click Me" />

// A customised button with values provided for optional props
<Button
    label = 'Hello World'
    size = 'lg'
    btnType = 'primary'
    onClick = { onClickHandler }
    rounded = 'soft'
    isLoading = { true }
    loadingIcon = { <SomeLoaderComponent/> }
/>