0.5.9 • Published 3 years ago

aphix-ui v0.5.9

Weekly downloads
2
License
MIT
Repository
bitbucket
Last release
3 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

3 years ago

0.5.9

3 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.4

4 years ago

0.5.5

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.4.38

4 years ago

0.4.37

4 years ago

0.4.35

4 years ago

0.4.36

4 years ago

0.4.34

4 years ago

0.4.31

4 years ago

0.4.32

4 years ago

0.4.30

4 years ago

0.4.33

4 years ago

0.4.28

4 years ago

0.4.29

4 years ago

0.4.27

4 years ago

0.4.26

4 years ago

0.4.25

4 years ago

0.4.24

4 years ago

0.4.23

4 years ago

0.4.22

4 years ago

0.4.20

4 years ago

0.4.21

4 years ago

0.4.19

4 years ago

0.4.17

4 years ago

0.4.18

4 years ago

0.4.16

4 years ago

0.4.15

4 years ago

0.4.13

4 years ago

0.4.14

4 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.11

4 years ago

0.4.12

4 years ago

0.4.8

4 years ago

0.4.5

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago