subschema-plugin-content

4.1.3 • Public • Published

Content A Content component. Will render safely as possible innerHTML. It will also subscribe to values that are put in the {name}. You can nest content and types.

Super simple example.

{
 "content":"Stuff {substitute_this_value}"
}

A more sophisticated example using arrays and custom content.

{
 "content":["Stuff {substitute_this_value}", {
   "type":"h3",
   "className":"some_class",
   "content":"Hello {..another_value_from_parent}"
 }]
}

See the example

Readme

Keywords

none

Package Sidebar

Install

npm i subschema-plugin-content

Weekly Downloads

3

Version

4.1.3

License

MIT

Unpacked Size

28.5 kB

Total Files

6

Last publish

Collaborators

  • nanandn
  • speajus