API / @aionbuilders/nabu/extend

BlockComponent

Component Stability: stable

Renders one block with the component its extension registered. Used by container blocks to render their children.

Usage

Svelte
<script>
  import { BlockComponent } from '@aionbuilders/nabu/extend';
</script>

<BlockComponent {block} />

Props

Props of BlockComponent
PropTypeDescription
blockBlock

The block to render.

Source: src/lib/blocks/Block.svelte