0.0.3 • Published 4 years ago
@metamorph-ui/react v0.0.3
Metamorph UI
A lightweight collection of reusable components library for React JS.
- Documentation: metamorph-ui.surge.sh
- NPM: @metamorph-ui/react
Installation
To use Metamorph UI components, all you need to do is install the @metamorph-ui/react package :
# Using NPM
$ npm i @metamorph-ui/react styled-components
# Using Yarn
$ yarn add @metamorph-ui/react styled-componentsUsage
To start using components, please follow these steps :
- Wrap your application with the MetamorphProvider provided by
@metamorph-ui/react.
import { MetamorphProvider } from "@metamorph-ui/react";
// Do this at the root of your application
function App({ children }) {
return <MetamorphProvider>{children}</MetamorphProvider>;
}- And you can start using components.
import { Button } from "@metamorph-ui/react";
function Example() {
return <Button title="Hello World!">;
}Development
Before starting, you need to have Git and Node installed.
# Clone project
$ git clone https://github.com/dirgaprksha/metamorph-ui.git
# Access repository
$ cd metamorph-ui
# Install dependencies
$ yarn install
# Run project
$ yarn run startAnother script options :
yarn installto install all dependencies.yarn run cleanto clean all node_modules and dist packages.yarn run clean:distto clean all dist packages.yarn run buildto generate all packages to cjs, esm and umd format.yarn run startto run project.yarn run docto start storybook documentation (server will initialize in http://localhost:6006).yarn run doc:buildto build storybook documentation.yarn run testto test unit and snapshot testing all packages.yarn run test:watchto test unit and snapshot testing all packages (watching).
License
This project is under license from MIT. For more details, see the LICENSE file.
Maintainer
- Dirga Prakesha (@dirgaprksha) – UI/UX Frontend Engineer