Sha256: 945223fbe4e61e066dbe45a54a21f9f3de41a0b60df551bc72552fe6117b89a6

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

module Components::ComboboxHelper
  def render_combobox(items, &block)
    content = capture(&block) if block
    render "components/ui/combobox", items:, content:
  end

  def combobox_trigger(&block)
    content_for :trigger, capture(&block) if block
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/helpers/components/combobox_helper.rb
shadcn-ui-0.0.14 app/helpers/components/combobox_helper.rb
shadcn-ui-0.0.13 app/helpers/components/combobox_helper.rb
shadcn-ui-0.0.12 app/helpers/components/combobox_helper.rb
shadcn-ui-0.0.10 app/helpers/components/combobox_helper.rb
shadcn-ui-0.0.8 app/helpers/components/combobox_helper.rb