Sha256: 5d02021752b462bf50f48ef27052fa247d223001453521bdb0214239ae32de1d

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbPopover
    class Popover
      include Playbook::Props
      partial "pb_popover/popover"

      prop :position
      prop :trigger_element_id
      prop :tooltip_id
      prop :offset, type: Playbook::Props::Boolean, default: false

      def popover_offset
        offset ? "0, 8" : "0, 0"
      end

      def classname
        generate_classname("pb_popover_kit")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-4.3.1 app/pb_kits/playbook/pb_popover/popover.rb
playbook_ui-4.3.0 app/pb_kits/playbook/pb_popover/popover.rb