0.5.9 • Published 4 years ago

aphix-ui v0.5.9

Weekly downloads
2
License
MIT
Repository
bitbucket
Last release
4 years ago

aphix-ui

UI library based on material-ui and emotion

NPM JavaScript Style Guide

Install

npm install --save aphix-ui

Usage

import * as React from 'react'

import Button from 'aphix-ui'

class Example extends React.Component {
  buttonOnClick = () => alert('you just clicked on a button');
  render () {
    return (
      <Button type={'button'} onClick={buttonOnClick}>ClickMe!</Button>
    )
  }
}

Global Styles & Theme Provider

in App.js/ts use GlobalStyles and ThemeProvider as described below

import React from 'react'
import {
  Button, 
  GlobalStyles, 
  globalStyles, 
  ThemeProvider, 
  defaultTheme
} from 'aphix-ui';

export default class App extends Component {
  render () {
    return (
      <div>
        <GlobalStyles styles={globalStyles}/>
        <ThemeProvider theme={defaultTheme}>
          <Button buttonType={'error'}>Some error button?</Button>
          <Button type={'button'} buttonType={'primary'}>Primary, huh!?</Button>
        </ThemeProvider>
      </div>
    )
  }
}

Components

All components use Material-UI API with addition to some extra props that are added to extend Material-UI.

License

MIT © Aphix Software Ltd

0.5.8

4 years ago

0.5.9

4 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.4

5 years ago

0.5.5

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.4.38

5 years ago

0.4.37

5 years ago

0.4.35

5 years ago

0.4.36

5 years ago

0.4.34

5 years ago

0.4.31

5 years ago

0.4.32

5 years ago

0.4.30

5 years ago

0.4.33

5 years ago

0.4.28

5 years ago

0.4.29

5 years ago

0.4.27

5 years ago

0.4.26

5 years ago

0.4.25

5 years ago

0.4.24

5 years ago

0.4.23

5 years ago

0.4.22

5 years ago

0.4.20

5 years ago

0.4.21

5 years ago

0.4.19

5 years ago

0.4.17

5 years ago

0.4.18

5 years ago

0.4.16

5 years ago

0.4.15

5 years ago

0.4.13

5 years ago

0.4.14

5 years ago

0.4.10

5 years ago

0.4.9

5 years ago

0.4.11

5 years ago

0.4.12

5 years ago

0.4.8

5 years ago

0.4.5

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago