Sha256: f52d584baae0e6a338958b0dbb415676803cebd4a7e0258712abcf8900ee7ca5
Contents?: true
Size: 592 Bytes
Versions: 11
Compression:
Stored size: 592 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 @system_arguments = { tag: :div, data: { targets: "action-bar.items" }, classes: "ActionBar-item" } end def call render(Primer::BaseComponent.new(**@system_arguments)) { content } end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems