PhoenixPaper.AccordionDetails (PhoenixPaper v0.1.0)

Copy Markdown View Source

The collapsible content of a PhoenixPaper.Accordion (pp_accordion_details/1) — hidden until the accordion's checkbox/radio is checked, via peer-checked:. See PhoenixPaper.Accordion's moduledoc for a full example.

id isn't actually used for anything here (unlike PhoenixPaper.AccordionSummary, which needs it to build for=) — it's still required, so every pp_accordion_* component shares the same simple contract and a typo in one place (passing the wrong id to just one of the three) is at least visible in the markup rather than silently accepted.

Summary

Functions

Renders accordion content. See the module doc.

Functions

pp_accordion_details(assigns)

Renders accordion content. 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)