@payapps/ui
v1.0.37
Published
Payapps UI
Downloads
21
Readme
ui
Payapps UI
Install
npm install --save ui
Usage
By default the UI needs the ThemeProvider wrapper. It'll take an optional theme
prop for passing custom themes.
import React from 'react'
import { ThemeProvider, Button } from '@payapps/ui'
class Example extends Component {
render() {
<ThemeProvider>
<Button onClick={handleClick} size="lg">Primary</Button>
<Button type="secondary" loading={loading} success={success} size="lg">Secondary</Button>
<Button type="tertiary" loading={loading} size="lg">Tertiary</Button>
<p>Some text here and a <Button type="link" underline>link type button here</Button>.</p>
</ThemeProvider>
}
}
License
MIT © 3base