Sha256: 3d1cde8efa3e69792887894945736d8ae6f024cb3be26e706298141799348a2b
Contents?: true
Size: 604 Bytes
Versions: 7
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Primer # @label PopoverComponent class PopoverComponentPreview < ViewComponent::Preview # @label Default Options # # @param caret [Symbol] select [top, right, bottom, left, top_right, top_left, bottom_right, bottom_left, left_bottom, left_top, right_bottom, right_top] def default(caret: :top) render Primer::PopoverComponent.new do |component| component.with_heading do "Activity feed" end component.with_body(caret: caret) do "This is the Popover body." end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems