Sha256: 485f057a80bcb07a41b285ffdc2e137ee72a0d8d8c1fecf31e05775c22765818
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true class SolidusAdmin::UI::Panel::Component < SolidusAdmin::BaseComponent renders_one :action, ->(name:, href:, icon: 'add-box-fill', **args) { link_to( icon_tag(icon, class: 'w-[1.4em] h-[1.4em]') + name, href, **args, class: 'flex gap-1 hover:underline' ) } # @param title [String] the title of the panel # @param title_hint [String] the title hint of the panel def initialize(title: nil, title_hint: nil) @title = title @title_hint = title_hint end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_admin-0.0.2 | app/components/solidus_admin/ui/panel/component.rb |
solidus_admin-0.0.1 | app/components/solidus_admin/ui/panel/component.rb |