.

.

.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { RichTextEditor, Field, Label } from '@dryui/ui';
</script>

<Field.Root>
  <Label>Release notes</Label>
  <RichTextEditor.Root>
    <RichTextEditor.Toolbar>...</RichTextEditor.Toolbar>
    <RichTextEditor.Content>...</RichTextEditor.Content>
  </RichTextEditor.Root>
</Field.Root>

Import options

Root package

ts
import { RichTextEditor } from '@dryui/ui'

Per-component subpath

ts
import { RichTextEditor } from '@dryui/ui/rich-text-editor'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable

RichTextEditor.Root

value
string
Current controlled or bindable value. '' — ✓
placeholder
string
Hint text shown when no value is selected or entered. '' — —
readonly
boolean
— — — —
children
Snippet
Content rendered inside the component. — ✓ —

RichTextEditor.Toolbar

children
Snippet<[ToolbarSnippetParams]>
Content rendered inside the component. — ✓ —

RichTextEditor.Content