Data displayVideoMedia

Open in Create
Search
astronomic.dev

VideoMedia

Free

For a short silent loop or a showreel still: a video in a fixed shape with its poster, a play button, and no autoplay for readers who ask for less motion.

File
VideoMedia.astro
Group
Data display
Kind
Interactive: inline script
Examples
2
import VideoMedia from "@astronomic-dev/ui/components/VideoMedia.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

A poster until the file is in

With sources={[]} the poster shows as a still in the frame the video will fill, with label as its alt. List your files in sources (WebM before MP4) and it plays: muted, looped, and only when the reader allows motion.

main.astro

Media's shapes

The frame is Media's: shape="cut" with cutCorner, and shape="circle", with focalPoint to keep the subject in view.

cut.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.