Menu

Components

AccordionAvatarBadgeButtonLinkRowSkeletonTabs
Essence

Accordion

Renders an accordion element


Is it accessible?

Yes. It adheres to the WAI-ARIA design pattern.

render Accordion.new do |accordion|
  accordion.trigger { "Is it accessible?" }
  accordion.content { "Yes. It adheres to the WAI-ARIA design pattern." }
end

Usage

Add the component to your project

bundle exec essence add accordion