Skip to main content

Components

Accordion

Source code

Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.

Props

Accordion

AccordionItem

Usage

<script>
  import { Accordion, AccordionItem } from "svelte-uswds";
</script>

<Accordion>
  <AccordionItem title="First Amendment" expanded>
    <p>
      Congress shall make no law respecting an establishment of religion, or prohibiting the free
      exercise thereof; or abridging the freedom of speech, or of the press; or the right of the
      people peaceably to assemble, and to petition the Government for a redress of grievances.
    </p>
  </AccordionItem>
  <AccordionItem title="Second Amendment">
    <p>
      A well regulated Militia, being necessary to the security of a free State, the right of the
      people to keep and bear Arms, shall not be infringed.
    </p>
  </AccordionItem>
</Accordion>