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}
{render_slot(action)}
""" end attr :title, :string, required: true attr :divide, :boolean, default: false slot :action def section_header(assigns) do ~H"""
{@title}
{render_slot(action)}
""" end end