Sha256: 3bef9506cd2e221296a615578efbc311857f6d5cace5732d962c9b1776b5c541
Contents?: true
Size: 429 Bytes
Versions: 14
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true module Bs5 class ButtonToolbarComponent < ViewComponent::Base def initialize(options = {}) @options = options end def render? content.present? end def component_attributes default_options = { role: 'toolbar' } @options[:class] = Array(@options[:class]) @options[:class] << 'btn-toolbar' @options.merge(default_options) end end end
Version data entries
14 entries across 14 versions & 1 rubygems