SupabaseSurface.Components.DropdownItemIcon (supabase_surface v0.1.1)

This component is used together with DropdownItem to add an icon to the dropdown item.

Example

<DropdownItem to="/logout" method={{ :post }}>
  <DropdownItemIcon>{{ Heroicons.Outline.logout(class: "w-4 h-4") }}</DropdownItemIcon>
  <Typography.Text>Logout</Typography.text>
</DropdownItem>

Slots

  • default, required: true

Link to this section Summary

Link to this section Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Link to this function

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this function

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.