Skip to content
Corex

AccordionRenderer

Corex\Ui\Blocks\AccordionRenderer · class · Add-ons layer

Renders a set of disclosures as native <details>/<summary> elements — accessible and keyboard-operable with no JavaScript. Items come from a simple text attribute: one Title | Content per line (a line with no | is a title-only item). Empty input renders nothing.

render(array $attributes, string $content, object $block): string

Section titled “render(array $attributes, string $content, object $block): string”