Sha256: 588942e85119e0893e6c4d88e0e716a3c4ac6e8af6b8b62b8f6add5ed43a0a90

Contents?: true

Size: 276 Bytes

Versions: 9

Compression:

Stored size: 276 Bytes

Contents

module Components::CardHelper
  def render_card(title: nil, subtitle: nil, body: nil, footer: nil, **options, &block)
    render "components/ui/card", title: title, subtitle: subtitle, footer: footer, body: (block ? capture(&block) : body), block:, options: options
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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