class Lookbook::Button::Component

def alpine_component

def alpine_component
  "buttonComponent"
end

def icon_size

def icon_size
  ICON_SIZES[@size]
end

def initialize(icon: nil, tooltip: nil, disabled: false, size: :md, href: nil, **html_attrs)

def initialize(icon: nil, tooltip: nil, disabled: false, size: :md, href: nil, **html_attrs)
  @icon = icon
  @tooltip = tooltip
  @disabled = disabled
  @size = size
  @href = href
  super(**html_attrs)
end

def padding

def padding
  @size == :sm ? "p-1" : "p-2"
end

def tag_name

def tag_name
  @href.present? ? :a : :button
end