We use cookies to ensure you get the best experience on our website. Read our privacy policy

Skip to main content

Directory

Vimeo Component

The Vimeo component provides a performant, accessible way to embed Vimeo videos in your application. It features lazy loading, custom thumbnails, and structured data support for better SEO.

  • Check Circle

    Performance-First: Loads video player only on interaction

  • Check Circle

    SEO-Friendly: Includes structured data and semantic markup

  • Check Circle

    Customizable: Supports custom thumbnails and player parameters

The Mountain
A video by TSO Photography
The Mountain
<Vimeo src="22439234" title="The Mountain" description="A video by TSO Photography" />

The component accepts both full Vimeo URLs and video IDs:

<!-- Using Video ID -->
<Vimeo src="22439234" />
<!-- Using Full URL -->
<Vimeo src="https://vimeo.com/22439234" />

Override the default Vimeo thumbnail with your own image:

Custom thumbnail description
<Vimeo
src="9479342"
thumbnailProps={{
src: customThumbnail,
alt: 'Custom thumbnail description',
}}
/>

Customize the Vimeo player behavior with URL parameters:

<Vimeo
src="22439234"
params="color=ff0000&background=1"
/>
Required Props
Vimeo Component Props Extends <div> HTMLElement
Prop Type Default Description
src string - Vimeo video ID or URL
title string Video title for accessibility and SEO
description string Video description for SEO
params string Additional Vimeo player parameters
thumbnailProps ImageProps Custom thumbnail configuration
buttonProps ButtonProps Play button customization
structuredData boolean true Enable/disable structured data
uploadDate Date Video upload date for SEO

The component automatically generates VideoObject structured data:

<Vimeo
src="22439234"
title="Video Title"
description="Video description"
uploadDate={new Date('2024-02-24')}
structuredData={true}
/>

The component exposes the following function for you to use:

play(): Promise<void>;

Limited Time Launch Sale

Start embedding professional-quality videos in your Astro project. Get our starter template with the Vimeo component and more.

GET 60% OFF!
North Star Themes Logo

Subscribe to our newsletter

Get the latest AstroJS tips and tricks right to your inbox

Email: [email protected]

© 2025 North Star Themes

Web Kit Provided By North Star Themes