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

<Marquee>Content</Marquee>

Import options

Root package

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

Per-component subpath

ts
import { Marquee } from '@dryui/ui/marquee'

Customize

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

Scrolling Text (left)

Svelte 5 Zero Dependencies Accessible Customizable
svelte
<Marquee speed={40} direction="left" pauseOnHover>
  <span>Svelte 5</span>
  <span></span>
  <span>Zero Dependencies</span>
  <span></span>
  <span>Accessible</span>
  <span></span>
  <span>Customizable</span>
  <span></span>
</Marquee>

Pause on Hover

🎉 Feature release 🚀 Performance update ✨ New components
svelte
<Marquee speed={60} direction="right" pauseOnHover gap="2rem">
  <span>🎉 Feature release</span>
  <span>🚀 Performance update</span>
  <span>✨ New components</span>
</Marquee>

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
speed
number
50
direction
leftrightupdown
'left'
pauseOnHover
boolean
false
gap
string
'1rem'
children
Snippet

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