Sha256: 4bc35e57e9e186086cabf93b99fac8e9a559793473934d5cc9d42c90f56350c8

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

module Components::CollapsibleHelper
  def collapsible_preview(&block)
    content_for :preview, capture(&block) if block
  end

  def collapsible_body(&block)
    content_for :body, capture(&block) if block
  end

  def render_collapsible(**options, &block)
    content = capture(&block) if block
    render "components/ui/collapsible", content: content, **options
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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