defmodule SigmaKit.Components.Headers do
use Phoenix.LiveComponent
import SigmaKit.Components.Icons, only: [icon: 1]
attr :title, :string, required: true
attr :subtitle, :string, default: nil
attr :identity, :string, default: nil
slot :action
attr :tag, :string
attr :tag_style, :atom, values: [:success, :danger, :info], default: :info
slot :breadcrumb do
attr :label, :string
attr :to, :any
end
def page_header(assigns) do
~H"""
{@identity}
{@title}
{@subtitle}
"""
end
attr :title, :string, required: true
attr :divide, :boolean, default: false
slot :action
def section_header(assigns) do
~H"""
"""
end
end