Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

Components

Accordion

Progressive disclosure for requirements, schedules and FAQ text. One open item or many, with an animated height and a fluid hover fill on the open trigger.

Preview
Schedules are posted at your barangay hall and on the barangay Facebook page; most provinces finish the round in two weekends.
Anumang government-issued ID; UMID, PhilHealth, driver's license, or passport; at isang kopya ng project brief.
From the barangay Secretary, or print the PDFs linked on this site under Services.
<Accordion type="single" collapsible defaultValue="q1">
  <AccordionItem value="q1">
    <AccordionTrigger>When is my barangay on the caravan?</AccordionTrigger>
    <AccordionContent>Schedules are posted at the barangay hall.</AccordionContent>
  </AccordionItem>
</Accordion>

Usage

Long, scannable policy text where most readers need one section.

Do and don't

  • Do. Keep triggers as short questions or noun phrases.
  • Don't. Hide a required step or a download behind an accordion.

Composition

Accordion wraps AccordionItem rows. Each row owns an AccordionTrigger and an AccordionContent. All four are exported from the same item.

Props

  • type="single" | "multiple"; one open item or many.
  • collapsible; with single, allows closing the open item.
  • value / defaultValue / onValueChange; controlled by string (single) or string[] (multiple).
  • size="default" | "compact"; pins rows to 36px or 28px. Omit to follow the surrounding size context.

AccordionGroup is the lower-level primitive for custom headers. It accepts highlight="trigger" | "item" to choose whether the whole row or only the chevron column lights on hover.

Related

Banner for advisories that must be read without interaction. Type labels follow the Typography scale; hover and selected fills use the Colors interaction tokens.

← PreviousComponents OverviewNext →Alert

Install

npx shadcn@latest add @pilipinas/accordion

For your coding agent