Skip to content
Text & Typography Fancy Stable

EditorialEngine

.md

Live magazine layout: multi-column text flowing around draggable orbs with zero DOM reads, powered by pretext

Available for Svelte 5, React, and Vue 3.

Preview

Installation

pnpm add fancy-ui-svelte
import { EditorialEngine } from "fancy-ui-svelte";

Usage

svelte
<script lang="ts">
	import { EditorialEngine } from "fancy-ui-svelte";
</script>

<div class="h-[600px] w-full overflow-hidden rounded-lg border">
	<EditorialEngine />
</div>
<p class="text-muted-foreground mt-3 text-xs">
	Drag an orb — text reflows around it every frame. Click an orb to pause its drift.
</p>

Examples

Basic Usage

Drag the orbs, click to pause them, resize the window.

Props

PropTypeDefaultDescription
headline stringbuilt-in copyAuto-sized headline (largest font size that breaks no word)
body stringbuilt-in copyBody text, paragraphs separated by blank lines
pullquotes string[]built-in quotesUp to two pullquotes embedded in the columns
fontFamily stringPalatino serif stackFont family stack used for all text
class string-Additional CSS classes for the stage