1.2.0 • Published 5 years ago
askalfred-ui v1.2.0
askalfred-ui
ui for AskAlfred
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'}
/>
)
}
}
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
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