View Source Moon.Design.Dropdown.Trigger (Moon v2.87.4)

Element that triggers Dropdown component, renders with no HTML tag

Properties

  • title :string - Title to be shown when no defaul slot given
  • is_open :boolean, from_context: :is_open - If the trigger is open. Should be taken from context
  • testid :string - Data-testid attribute for HTML tag
  • class :css_class - Additional Tailwind classes
  • disabled :boolean, from_context: :disabled - If the item should be marked as disabled

Slots

  • default - Inner content of the component

Events

  • on_click, from_context: :on_trigger - Event that fired when trigger is clicked

Summary

Functions

Callback implementation for Surface.Component.render/1.