Dynamic component for sham-ui
# npm
npm install sham-ui-dynamic-component
# yarn
yarn add sham-ui-dynamic-component
Component-wrapper for dynamic insert components
{% Dynamic from 'sham-ui-dynamic-component' %}
<!-- Can use as in-place inserted component -->
<Dynamic
component={{Foo}}
componentOption={{optionValue}}/>
<!-- Can use as block component -->
<Dynamic
component={{Foo}}
componentOption={{optionValue}}
>
{% content %}
Blocks also supported
{% end content %}
<Dynamic/>
Option. Wrapped component
Type: Function