0.0.9 • Published 5 years ago

mattia-ui v0.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

mattia-ui

An React UI library. It use React hook to develop and as state manager.

Install

npm i mattia-ui
yarn add mattia-ui

Usage

You can check the usage and start the local development by storybook

yarn storybook
npm run storybook

Component

Button

alt button .

import { Button } from 'mattia-ui'

interface Props{}

const Component: SFC<Props> = props => {
  return (
      <Button type="button" color="primary">
        Primary
      </Button>
  )
}

Icon Button

alt Icon Button
iconName is equal to material-icons name

import { IconButton } from 'mattia-ui'

interface Props{}

const Component: SFC<Props> = props => {
  return (
    <IconButton iconName='close'>
      Close
    </IconButton>
  )
}

Input

alt input

import { Input } from 'mattia-ui'

interface Props{}

const Component: SFC<Props> = props => {
  return (
    <Input type="password" placeholder="testing" />
  )
}

Progress Bar

alt Progress Bar

import { IconButton } from 'mattia-ui'

interface Props{}

const Component: SFC<Props> = props => {
  return (
    <>
      <CircleProgress width={100} height={100} value={60} minValue={0} maxValue={100} strokeWidth={6} />
      <CircleProgress width={100} height={100} value={60} minValue={0} maxValue={100} strokeWidth={6} error />
      <CircleProgress width={100} height={100} value={100} minValue={0} maxValue={100} strokeWidth={6} />
      <div>
        <ProgressBar percentage={30} width={300} />
      </div>
      <div>
        <ProgressBar percentage={100} width={300} />
      </div>
      <div>
        <ProgressBar percentage={60} width={300} error />
      </div>
     </>
  )
}

Further enhancement

The above component is just a part of lastest version.
I suggest you download it and run the storybook to check out of the component.
Also, this project will keep develop.

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.142

5 years ago

1.0.141

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.113

5 years ago

1.0.112

5 years ago

1.0.111

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

5 years ago