PhoenixPaper.AccordionSummary (PhoenixPaper v0.1.0)

Copy Markdown View Source

The clickable header of a PhoenixPaper.Accordion (pp_accordion_summary/1) — a <label> pointing at the accordion's hidden checkbox/radio, with a trailing expand icon that rotates via peer-checked:. See PhoenixPaper.Accordion's moduledoc for a full example.

id must be the same id passed to the parent pp_accordion/1 — it's how this label finds the right checkbox to point for= at.

Summary

Functions

Renders an accordion summary/header. See the module doc.

Functions

pp_accordion_summary(assigns)

Renders an accordion summary/header. See the module doc.

Attributes

  • id (:string) (required) - the same id passed to the parent pp_accordion/1.
  • paperize (:boolean) - Defaults to true.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)