Skip to content

sham-ui/sham-ui-dynamic-component

Repository files navigation

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