Sha256: 8009d9de05a5b329fbcb56fab5f508d59bf9a538a0d5f0a4fc8663c4d67fc345

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

module Bs5
  module ComponentsHelper
    def bs5_accordion(*args)
      render AccordionComponent.new(*args) do |accordion|
        yield accordion if block_given?
      end
    end

    def bs5_alert(*args)
      render AlertComponent.new(*args) do
        yield if block_given?
      end
    end

    def bs5_badge(*args)
      render BadgeComponent.new(*args)
    end

    def bs5_close_button(*args)
      render CloseButtonComponent.new(*args)
    end

    def bs5_breadcrumb(*args)
      render BreadcrumbComponent.new(*args) do |breadcrumb|
        yield breadcrumb if block_given?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bs5-0.0.8 app/helpers/bs5/components_helper.rb