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

Version Path
shadcn-ui-0.0.15 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.14 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.13 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.12 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.10 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.8 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.5 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.4 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.3 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.2 app/helpers/components/hover_card_helper.rb
shadcn-ui-0.0.1 app/helpers/components/hover_card_helper.rb