Sha256: 881f0d375302e36758f2a47260e3f45e7ebdf560167bbe8dfa9e113cce1a5864

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

require_relative "base_component.rb"

module Docks::Themes
  class API < Base
    module Components
      class Popover < Base
      def pane(options = {}, &block)
        klass = "popover__pane"
        klass << " popover__pane--fixed" if options.fetch(:fixed?, false)
        concat "<div class='#{klass}'>#{capture(&block)}</div>"
      end
    end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docks_theme_api-1.0.3 lib/docks_theme_api/components/popover_component.rb
docks_theme_api-1.0.2 lib/docks_theme_api/components/popover_component.rb