Components
Video
The Video component displays a video thumbnail with a play button, which opens a modal dialog to play the video. It supports YouTube, Vimeo, and custom video sources.
page.tsx
Properties
src
string
requiredThe URL of the video (YouTube, Vimeo, or custom source).
thumbnail
string
URL of the custom thumbnail image. If not provided, it will attempt to fetch from the video source.
id
string
default: "'demo-video'"The ID attribute for the component.
title
string
The title displayed above the video.
description
string
The description displayed below the title.
children
React.ReactNode
Additional content to display over the video thumbnail.
Usage
example.tsx
If you need basic components like buttons, inputs, and more, they are available with Shadcn UI.
Was this page helpful?