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
{ return <CSSContainer ui=Button ...props hoverProps=...propshoverProps || {} highlight: true tooltipShown: true> children </CSSContainer> }
You can then use that button like:
{ return <Button tooltip='Some hovertext!' activeProps=border: true> Hover me! </Button> }
License
MIT