SupabaseSurface.Components.DropdownItemIcon (supabase_surface v0.1.5)
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
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Callback implementation for Phoenix.LiveComponent.update/2
.
Link to this section Functions
Link to this function
mount(socket)
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
.