TrademarkTrademark
Ctrl k
Search docs...
Components

Media

Last update: March 8, 2025
The Media component is a versatile media display solution that handles images, videos, and YouTube embeds with advanced features like zoom functionality, aspect ratio control, and responsive sizing.

Basic Usage

Media wraps Next.js's Image component and adds additional functionality. You can access it in an MDX file through the mdx image syntax or the custom Media component if you need full customization.
Props Reference

YouTube Embedding

You can embed YouTube videos directly using the same component:
The Media component simplifies media handling while providing advanced features that enhance the user experience.
Edit this page on GitHub
TrademarkTrademark
Launch your docs with Once UI
Social
GitHub