1.2.10 • Published 8 years ago
vdux-containers v1.2.10
containers
Container components that wrap presentational components and give them state.
Installation
$ npm install vdux-containers
Containers
- CSSContainer - Let's you pass along special props when the component is hovered, focused, or active
- Button - Manages hover/tooltip state
- Dropdown - Manages openness
- MenuItem - Manages hover / css emulation
Example
import {Button} from 'vdux-ui'
import {CSSContainer} from 'vdux-containers'
function render ({props, children}) {
return (
<CSSContainer ui={Button} {...props} hoverProps={{...(props.hoverProps || {}), highlight: true, tooltipShown: true}}>
{children}
</CSSContainer>
)
}
You can then use that button like:
function render () {
return (
<Button tooltip='Some hovertext!' activeProps={{border: true}}>
Hover me!
</Button>
)
}
License
MIT
1.2.10
8 years ago
1.2.9
8 years ago
1.2.8
8 years ago
1.2.7
9 years ago
1.2.5
9 years ago
1.2.4
9 years ago
1.2.3
9 years ago
1.2.2
9 years ago
1.2.1
9 years ago
1.2.0
9 years ago
1.1.24
9 years ago
1.1.23
9 years ago
1.1.22
9 years ago
1.1.21
9 years ago
1.1.19
9 years ago
1.1.18
9 years ago
1.1.17
9 years ago
1.1.15
9 years ago
1.1.14
9 years ago
1.1.13
9 years ago
1.1.12
9 years ago
1.1.11
9 years ago
1.1.10
9 years ago
1.1.8
9 years ago
1.1.7
9 years ago
1.1.6
9 years ago
1.1.5
9 years ago
1.1.4
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago