sham-ui-dynamic-component
v3.0.0
Published
Dynamic component for sham-ui
Downloads
7
Readme
sham-ui-dynamic-component
Dynamic component for sham-ui
Install
# npm
npm install sham-ui-dynamic-component
# yarn
yarn add sham-ui-dynamic-component
API
Table of Contents
Dynamic
Component-wrapper for dynamic insert components
Examples
{% 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/>
component
Option. Wrapped component
Type: Function