0.0.9 • Published 6 years ago
mattia-ui v0.0.9
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
.
import { Button } from 'mattia-ui'
interface Props{}
const Component: SFC<Props> = props => {
return (
<Button type="button" color="primary">
Primary
</Button>
)
}
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
import { Input } from 'mattia-ui'
interface Props{}
const Component: SFC<Props> = props => {
return (
<Input type="password" placeholder="testing" />
)
}
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
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.52
6 years ago
1.0.51
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.142
6 years ago
1.0.141
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.113
6 years ago
1.0.112
6 years ago
1.0.111
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.3
6 years ago