sham-ui-dynamic-component

3.0.0 • Public • Published

sham-ui-dynamic-component

Build Status npm version MIT Licence

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

Readme

Keywords

none

Package Sidebar

Install

npm i sham-ui-dynamic-component

Weekly Downloads

2

Version

3.0.0

License

MIT

Unpacked Size

8.74 kB

Total Files

6

Last publish

Collaborators

  • shamcode