3.0.27 • Published 6 years ago
the-view v3.0.27
the-view
View of the-components
Installation
$ npm install the-view --save
Usage
'use strict'
import React from 'react'
import { TheView, TheViewStyle } from 'the-view'
import { TheIcon } from 'the-icon'
import { TheSpinStyle } from 'the-spin'
import { TheButtonStyle } from 'the-button'
import { TheMenuStyle, TheDropdownMenu } from 'the-menu'
import { TheRouter } from 'the-router'
class ExampleComponent extends React.PureComponent {
render () {
const {Header, Body} = TheView
return (
<div>
<TheRouter.Hash>
<TheSpinStyle/>
<TheMenuStyle/>
<TheButtonStyle/>
<TheViewStyle/>
<TheView>
<Header
leftIcon={TheView.BACK_ICON}
leftTo='/'
icon={'fa fa-car'}
text='This is a view'
rightIcon={TheView.DROPDOWN_ICON}
onRightClick={() => console.log('Right clicked!')}
/>
<Body>
<div>
<TheView.Message>This is view message</TheView.Message>
</div>
</Body>
</TheView>
<hr/>
<TheView spinning/>
<hr/>
<TheView>
<Header leftIcon={TheView.BACK_ICON}
leftText='Back'
leftTo='/'
text='This is a view'
icon='fa fa-car'
rightText='Menu'
onRightClick={() => console.log('Right clicked!')}
rightNode={
<TheDropdownMenu icon={''}
label={<TheIcon className={TheView.DROPDOWN_ICON}></TheIcon>}
righted
>
<TheDropdownMenu.Item>Menu A</TheDropdownMenu.Item>
<TheDropdownMenu.Item>Menu B</TheDropdownMenu.Item>
</TheDropdownMenu>
}
/>
</TheView>
</TheRouter.Hash>
</div>
)
}
}
export default ExampleComponent
Components
TheView
View of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
fixed | bool | Mark as fixed | false |
spinning | bool | false | |
role | 'article' |
TheViewStyle
Style for TheView
Props
Name | Type | Description | Default |
---|---|---|---|
options | object | Style options | {} |
License
This software is released under the MIT License.
Links
3.0.27
6 years ago
3.0.26
6 years ago
3.0.25
6 years ago
3.0.24
6 years ago
3.0.23
6 years ago
3.0.22
7 years ago
3.0.21
7 years ago
3.0.20
7 years ago
3.0.19
7 years ago
3.0.18
7 years ago
3.0.17
7 years ago
3.0.16
7 years ago
3.0.15
7 years ago
3.0.14
7 years ago
3.0.13
7 years ago
3.0.12
7 years ago
3.0.11
7 years ago
3.0.10
7 years ago
3.0.9
7 years ago
3.0.8
7 years ago
3.0.7
7 years ago
3.0.6
7 years ago
3.0.5
7 years ago
3.0.4
7 years ago
3.0.3
7 years ago
3.0.2
7 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.0.1
7 years ago
2.0.0
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago