Type something to search...

Blog

How to mix multiple UI frameworks in one Astro project?

How to mix multiple UI frameworks in one Astro project?

To mix multiple UI frameworks in one Astro project, install an integration for each one, for example npx astro add react vue svelte, then import co

Dive Deeper
How to nest layouts in Astro?

How to nest layouts in Astro?

To nest layouts in Astro, make the inner layout render the outer layout in its template and put its own <slot /> inside it. For example, a `Blo

Dive Deeper
How to add Open Graph images in Astro?

How to add Open Graph images in Astro?

To add Open Graph images in Astro, render an og:image meta tag in the <head> of each page with the absolute URL of a 1200 by 630 pixel im

Dive Deeper
How to pass data from Astro to a client-side script?

How to pass data from Astro to a client-side script?

To pass data from Astro to a client-side script, write the data into the HTML on the server and read it back in the browser. The recommended way is *

Dive Deeper
How to use the Picture component for responsive images in Astro?

How to use the Picture component for responsive images in Astro?

To use the Picture component in Astro, import Picture from astro:assets, import your image from src/, and render `<Picture src={image} alt=

Dive Deeper
What is the Astro project folder structure?

What is the Astro project folder structure?

The Astro project folder structure has two main directories: src/, which holds the code and content Astro processes (pages, components, lay

Dive Deeper