Getting started
The Astro Embed package provides components for adding rich media from third-party services to your Astro website.
Installation
Using the components
Astro Embed components can be used in Astro and MDX files.
Each component expects an id
prop identifying the resource to be embedded.
In Astro files
To use components in .astro
files, import them in the component script and then use them in your template:
In MDX files
When using the Astro MDX integration, you can also import and use the embed components in MDX files:
Auto-embed URLs in MDX
Use the Astro Embed integration to automatically convert URLs in MDX files to embed components.
Learn how to set up the integration in the “Auto-embed URLs” guide.
Supported services
Astro Embed currently supports the following services: