Sha256: 1f715934e672662faa459ad2cdbc7e1deced898942c6df1da594ba99bc14708f
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true # :nocov: module Primer module Alpha class ActionBar # ActionBar::Item is an internal component that wraps the items in a div with the `ActionBar-item` class. class Item < Primer::Component def initialize(item_content) @system_arguments = { tag: :div, data: { targets: "action-bar.items" }, classes: "ActionBar-item" } @item_content = item_content end def call render(Primer::BaseComponent.new(**@system_arguments)) { render(@item_content) } end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems