FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CodeFaceIO/react-pluto: A package of small but beautiful React components from the planet, Pluto. 🔵 Get minimal components for your React based applications 😍 · GitHub

 
 

Repository files navigation

React Pluto Component Design System + UI Kit

A package of small but beautiful React components from the planet Pluto. To install the latest version, run this installation command.

npm install react-pluto --save-dev

How to import and start using Pluto Components

  • For an instance, consider a component view named as ScreenView, and we need to use a button component.
import { Button } from 'react-pluto';

export default function ScreenView() {
    return (
        <div className="screen-view">
            <Button>
                Pluto Button
            </Button>
        </div>
    )
}
  • Passing custom properties is extremely easy in these components. You can easily pass style, className, id, methods, actions as props.
import { Button } from 'react-pluto';

export default function ScreenView() {
    return (
        <Button style={{ background: 'black', color: 'white', width: '100%' }}>
            Pluto Button
        </Button>
    )
}
import React, { useState } from 'react';
import { Button } from 'react-pluto';

export default function ScreenView() {
    const [currentValueRef, setCurrentValue] = useState(0);
    return (
        <React.Fragment>
            <h2>Current Value is: {currentValueRef}</h2>
            <Button onClick={() => setCurrentValue(++currentValueRef)}> 
                Pluto Button
            </Button>
        </React.Fragment>
    )
}

Tools and Technologies used

We would love if you will raise issues and new feature requests to make this library more better. Thanks for checking out, hope you liked it, if yes then please leave a star ⭐

About

A package of small but beautiful React components from the planet, Pluto. 🔵 Get minimal components for your React based applications 😍

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL