#modal
3 messages · Page 1 of 1 (latest)
Hi @lethal portal. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Hmm, I don't know enough to give you a confident answer yet. The provided knowledge sources do not contain specific information on creating modal components in Astro. However, you can create reusable components in Astro, which could potentially include a modal component.
Astro components are the basic building blocks of any Astro project. They are HTML-only templating components with no client-side runtime. You can spot an Astro component by its file extension: .astro. Astro components are extremely flexible and can contain reusable UI on the page, like a header or a profile card, or even an entire page layout.
Here is an example of how to create a reusable component in Astro:
---import Button from './Button.astro';---
<div>
<Button title="Button 1" />
<Button title="Button 2" />
<Button title="Button 3" />
</div>