SupabaseSurface.Components.Badge (supabase_surface v0.3.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
Functions
Callback implementation for Phoenix.LiveComponent.mount/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_dot(assigns)
Link to this function
update(assigns, socket)
Callback implementation for Phoenix.LiveComponent.update/2
.