@payapps/ui

1.0.37 • Public • Published

ui

Payapps UI

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i @payapps/ui

Weekly Downloads

17

Version

1.0.37

License

MIT

Unpacked Size

11 MB

Total Files

6

Last publish

Collaborators

  • brentjohnson
  • benbruscella
  • bendamnyou