1.2.0 • Published 5 years ago

askalfred-ui v1.2.0

Weekly downloads
61
License
-
Repository
github
Last release
5 years ago

askalfred-ui

ui for AskAlfred

NPM JavaScript Style Guide

Install

npm install --save askalfred-ui

or

yarn add askalfred-ui

Scripts

yarn test             // run tests
yarn test:watch       // run tests and keep watching
yarn storybook        // run to start storybook
yarn build-storybook  // run before starting storybook

Components

Alert

import React, { Component } from 'react'

import MyComponent from 'askalfred-ui'

class Example extends Component {
  render () {
    return (
      <Alert
        type={'success'}
        message={'Hurray! Everything went well!'}
        show={'true'}
      />
    )
  }
}
PropsTypeoptions
typestring'error', 'info', 'success', 'warning', 'light', 'dark'
messagestring*
showboolean*

PageLayout

import React, { Component } from 'react'

import MyComponent from 'askalfred-ui'

class Example extends Component {
  list = () => {
    return [
      <div>
        item 1
      <div>,
      <div>
        item 2
      <div>
    ]
  }

  render () {
    return (
      <PageLayout
        list={this.list()}
        listHeader={'Some list header'}
        contentHeader={'some header'}
      >
        Content
      </PageLayout>
    )
  }
}
PropsTypeoptions
listarray*
listHeaderstring*
contentHeaderboolean*

License

private © aa-patrickg

1.2.0

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago