Accordion

What is Phoenix Duskmoon UI? A comprehensive component library for Phoenix LiveView applications. How do I install it? Add phoenix_duskmoon to your mix.exs dependencies. Is it open source? Yes, it is available on GitHub and Hex.pm.
Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

Additional CSS classes

multiple :boolean

Allow multiple panels open at once

false
value :string

Comma-separated list of initially open item IDs

rest :global
Required item * :slot

Accordion item

Show slot attributes Hide slot attributes
Required value * :string

Unique item identifier

Required header * :string

Header text for this item

disabled :boolean

Disable this item

<:item value="s1" header="What is Phoenix Duskmoon UI?">A comprehensive component library for Phoenix LiveView applications.</:item>
<:item value="s2" header="How do I install it?">Add phoenix_duskmoon to your mix.exs dependencies.</:item>
<:item value="s3" header="Is it open source?">Yes, it is available on GitHub and Hex.pm.</:item>