API / @aionbuilders/nabu/extend

RichText

Component Stability: stable

Renders the delta of a text block: marks, links and the trailing-line filler.

Usage

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

<RichText {delta} />

Props

Props of RichText
PropTypeDescription
deltaDelta<string>[]

The Loro delta to render: the insert strings and their marks.

Source: src/lib/behaviors/text/RichText.svelte