forked from
haetae.tngl.sh/fanfic-atproto
personal fork for experimenting
1---
2interface Props {
3 id: string;
4 title: string;
5 alert?: boolean;
6}
7
8const { id, title, alert = false } = Astro.props;
9---
10<dialog {id} role={alert ? "alertdialog" : undefined} closedby="any">
11 <header>
12 <h1>{title}</h1>
13 <form method="dialog">
14 <button>close</button>
15 </form>
16 </header>
17
18 <slot />
19</dialog>
20