View Source PetalComponents.Dropdown (petal_components v1.9.2)

Summary

Functions

<.dropdown label="Dropdown" js_lib="alpine_js|live_view_js">

Attributes

  • to (:string) - link path. Defaults to nil.
  • label (:string) - link label.
  • class (:string) - any additional CSS classes. Defaults to "".
  • disabled (:boolean) - Defaults to false.
  • link_type (:string) - Defaults to "button".
  • Global attributes are accepted. Supports all globals plus: ["method", "download", "hreflang", "ping", "referrerpolicy", "rel", "target", "type"].

Slots

  • inner_block

Functions