Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

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 { MarkdownRenderer } from '@dryui/ui';
</script>

<MarkdownRenderer>Content</MarkdownRenderer>

Import options

Root package

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

Per-component subpath

ts
import { MarkdownRenderer } from '@dryui/ui/markdown-renderer'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Render Markdown String

Hello, dryui!

A zero-dependency Svelte 5 component library with:

  • Headless primitives
  • Styled defaults
  • AI-ready MCP server

Code Example

typescript
import { Button } from '@dryui/ui';

Built for developers who value simplicity.

svelte
<MarkdownRenderer content=# Hello, dryui!

A **zero-dependency** Svelte 5 component library with:

- Headless primitives
- Styled defaults
- AI-ready MCP server

## Code Example

```typescript
import { Button } from '@dryui/ui';
```

> Built for developers who value simplicity. />

Sanitized Output

Bold and _italic_ with a link

svelte
<MarkdownRenderer
  content="**Bold** and _italic_ with [a link](https://dryui.dev)"
  sanitize
/>

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Prop Type Default Required Bindable
content
string
sanitize
boolean
true

Forwards <div> attributes via rest props. Common examples: id, style, role.