Sha256: d096ea89cf1db829908d40936fa2632ab830a8505828e03c1ce0e5055e943068
Contents?: true
Size: 492 Bytes
Versions: 11
Compression:
Stored size: 492 Bytes
Contents
module Components::HoverCardHelper def render_hover_card(**options, &block) content = capture(&block) if block render "components/ui/hover_card", content: content, **options end def hover_card_trigger(&block) content_for :hover_card_trigger, capture(&block), flush: true end def hover_card_content(options = {}, &block) content_for :hover_card_content_class, options[:class], flush: true content_for :hover_card_content, capture(&block), flush: true end end
Version data entries
11 entries across 11 versions & 1 rubygems