1.2.0 • Published 6 years ago
askalfred-ui v1.2.0
askalfred-ui
ui for AskAlfred
Install
npm install --save askalfred-uior
yarn add askalfred-uiScripts
yarn test // run tests
yarn test:watch // run tests and keep watching
yarn storybook // run to start storybook
yarn build-storybook // run before starting storybookComponents
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'}
/>
)
}
}| Props | Type | options |
|---|---|---|
| type | string | 'error', 'info', 'success', 'warning', 'light', 'dark' |
| message | string | * |
| show | boolean | * |
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>
)
}
}| Props | Type | options |
|---|---|---|
| list | array | * |
| listHeader | string | * |
| contentHeader | boolean | * |
License
private © aa-patrickg
1.2.0
6 years ago
1.1.15
6 years ago
1.1.14
6 years ago
1.1.13
6 years ago
1.1.12
6 years ago
1.1.11
6 years ago
1.1.10
7 years ago
1.1.9
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago