SupabaseSurface.Components.Badge (supabase_surface v0.4.0)

Properties

  • color :string, values: ["gray", "red", "yellow", "green", "blue", "indigo", "purple", "pink"] - The color for the badge.
  • size :string, values: ["large", "small"], default: "small" - The size of the badge.
  • dot :boolean, default: false - .

Slots

  • default, required: true - Content of the badge.

Link to this section Summary

Link to this section Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Link to this function

render_dot(assigns)

Link to this function

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.