@kaelan/render-blocks
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Render Blocks

A framework-agnostic, isomorphic library for rendering a dynamic array of objects, which we call blocks.

How can a renderer be framework-agnostic? You provide the render function. You can use React, Vue, Svelte, whatever you want! @kaelan/render-blocks provides all the logic leading up to the point of rendering. Framework-specific wrapper packages can optionally be built on top of @kaelan/render-blocks to provide a sensible default rendering mechanism.

Everything is handled by the highly-configurable BlockRenderer class. You provide a dictionary that maps data objects to your custom UI components.

Package Sidebar

Install

npm i @kaelan/render-blocks

Weekly Downloads

15

Version

0.1.0

License

LGPL-3.0-only

Unpacked Size

14.8 kB

Total Files

11

Last publish

Collaborators

  • kaelan