Class: Shadcn::Combobox::List::Component

Inherits:
ApplicationViewComponent show all
Defined in:
app/components/shadcn/combobox/list/component.rb

Overview

The scrolling part of the panel. data-empty is Base UI's, and the empty state's own class reads it through group-data-empty/combobox-content:flex — so the attribute lands on the content and the padding rule here reads it too.

Constant Summary

Constants inherited from ApplicationViewComponent

ApplicationViewComponent::CONTENTS_STYLE, ApplicationViewComponent::VOID_TAGS

Instance Attribute Summary

Attributes inherited from ApplicationViewComponent

#attributes

Instance Method Summary collapse

Methods inherited from ApplicationViewComponent

#call, #css_classes, default_tag, #initialize, #merged_style, #render_element, #shadcn_t, slot_name, #style_variants, #tag_name

Constructor Details

This class inherits a constructor from Shadcn::ApplicationViewComponent

Instance Method Details

#element_attributes(**defaults) ⇒ Object



21
22
23
# File 'app/components/shadcn/combobox/list/component.rb', line 21

def element_attributes(**defaults)
  super(**{ "data-shadcn--combobox-target" => "list" }.merge(defaults))
end