View Source ZoonkWeb.Components.Details (Zoonk v0.3.0-alpha)

Details component.

Link to this section Summary

Functions

Renders a details component.

Link to this section Functions

Renders a details component.

examples

Examples

<.details title="Title">
  <p>Content</p>
</.details>

attributes

Attributes

  • title (:string) (required) - Title to be displayed even when the component is collapsed.
  • class (:string) - Optional additional classes to add to the details element. Defaults to nil.

slots

Slots

  • inner_block (required) - Content to be displayed when the component is expanded.