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

<VideoEmbed src="https://youtube.com/watch?v=dQw4w9WgXcQ" provider="youtube" title="Video title" />

Import options

Root package

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

Per-component subpath

ts
import { VideoEmbed } from '@dryui/ui/video-embed'

Customize

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

YouTube

svelte
<VideoEmbed
  src="https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  title="Video embed example"
  provider="youtube"
/>

Vimeo

svelte
<VideoEmbed
  src="https://vimeo.com/76979871"
  title="Vimeo embed example"
  provider="vimeo"
/>

Custom Aspect Ratio

svelte
<VideoEmbed
  src="https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  title="Widescreen video"
  provider="youtube"
  aspectRatio="21/9"
/>

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
src
string
poster
string
title
string
provider
youtubevimeonative
autoplay
boolean
aspectRatio
string
playButton
Snippet
children
Snippet

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