File tree Expand file tree Collapse file tree 4 files changed +25
-37
lines changed Expand file tree Collapse file tree 4 files changed +25
-37
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ export interface Props {
3+ title: string ;
4+ id: string ;
5+ }
6+
7+ const { title, id } = Astro .props ;
8+ ---
9+
10+ <details class =" group mb-4" >
11+ <summary
12+ aria-expanded =" false"
13+ aria-controls ={ id }
14+ class =" cursor-pointer flex justify-between p-2 rounded-md border-t border-b focus:ring-2"
15+ >
16+ <span class =" font-semibold" >{ title } </span >
17+ <span aria-hidden =" true" class =" group-open:hidden" >+</span >
18+ <span aria-hidden =" true" class =" group-open:block hidden" >−</span >
19+ </summary >
20+
21+ <div id ={ id } class =" pl-4" >
22+ <slot />
23+ </div >
24+ </details >
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import BenefitItem from "../components/benefits-list/benefit-item.astro";
1414import { ButtonWithTitle } from " ../components/button-with-title" ;
1515import { Note } from " ../components/note" ;
1616import { SponsorTiers } from " ../components/sponsor-tiers" ;
17- import { Accordion } from " ../components/accordion" ;
17+ import Accordion from " ../components/accordion/accordion.astro " ;
1818
1919export async function getStaticPaths() {
2020 const posts = await getCollection (" pages" );
You can’t perform that action at this time.
0 commit comments