Element
Render component for Toolkit sections
When creating Toolkit sections you can wrap your component in the Element component to apply general styling and sizing attributes as well as a heading for the page and toolbar components specific to the element.
Usage
Using the example above, let's add a select input to the Toolbar:
Properties
Property | Type | Description |
children |
| The content of the Element |
className |
| Class name to apply to the wrapper div |
fullscreen |
| Toggle the fullscreen mode of the toolkit |
title |
| Title component or string to render in the toolbar |
toolbar |
| Temporary Toolbar component |
xs |
| Grid size when the viewport is xs
|
sm |
| Grid size when the viewport is sm
|
md |
| Grid size when the viewport is md
|
lg |
| Grid size when the viewport is lg
|
Any additional props are passed to the container div
fullscreen
This property causes the Element component to call Reactium.Toolkt.setFullscreen()
as a side-effect. When rendering multiple Element components in a single view, the last Element component rendered will be the most recent value of the Reactium.Toolkit.fullscreen
property.
title
If you're rendering multiple Element components in a single view and set the title property on each, you will see multiple titles in the Toolbar.
Last updated