defmodule SigmaKit.Components.Alerts do use Phoenix.LiveComponent attr :danger, :boolean, default: false, doc: "Apply the danger style to the alert." attr :success, :boolean, default: false, doc: "Apply the success style to the alert." attr :warning, :boolean, default: false, doc: "Apply the warning style to the alert." attr :info, :boolean, default: false, doc: "Apply the info style to the alert." attr :title, :string, default: nil, doc: "The title of the alert." attr :class, :any, default: nil, doc: "Additional classes to apply to the alert." slot :inner_block, doc: "The content to render inside the alert." def alert(assigns) do ~H"""