Svelte Blocks Renderer (Strapi)

Built for teams using Strapi with Svelte 5. Instead of dumping raw HTML onto the page, sbr takes your Strapi blocks JSON and renders it as native, structured Svelte components that fit right into your codebase.

Svelte Blocks Renderer (Strapi) Cover

Why teams use it

Built for Svelte 5: Designed around Svelte 5 runes and snippets so it fits right into your existing components.

Matches your design system: Override any block or modifier to control the typography, spacing, and components yourself instead of being stuck with default styles.

Tailwind-friendly: Works smoothly with Tailwind v4 if you prefer utility-first styling.

Less boilerplate: Stop writing custom recursive parsers to map Strapi's block tree by hand.

In one line Ship CMS-driven pages faster: Strapi handles the content, and sbr renders it cleanly in Svelte.

Install

bun add sbr-mike npm i sbr-mike pnpm add sbr-mike yarn add sbr-mike

Usage

<BlocksRenderer {content} />

Pass optional blocks and modifiers props to override the default components.

Types

import type { RootNode, Node, BlocksContent, ParagraphBlockNode, HeadingBlockNode } from 'sbr-mike';

enphth