Class: Ariadne::UI::List::Component
- Inherits:
-
BaseComponent
- Object
- ViewComponentContrib::Base
- BaseComponent
- Ariadne::UI::List::Component
- Defined in:
- app/components/ariadne/ui/list/component.rb
Overview
Use this for a vertical list of interactive actions or options. It’s composed of items presented in a consistent, single-column format, with room for icons, descriptions, side information, and other visuals.
Constant Summary collapse
- DEFAULT_SIZE =
:md- SHARED_BACKGROUND_COLORS =
[ "ariadne:hover:bg-blue-100", "ariadne:dark:hover:bg-blue-800", "ariadne:focus-within:bg-blue-100", "ariadne:dark:focus-within:bg-blue-800", ]
Constants inherited from BaseComponent
BaseComponent::ACCEPT_ANYTHING
Constants included from ViewHelper
Constants included from AttributesHelper
AttributesHelper::PLURAL_ARIA_ATTRIBUTES, AttributesHelper::PLURAL_DATA_ATTRIBUTES
Method Summary
Methods inherited from BaseComponent
audited_at, #class_for, #component, component_id, #component_id, component_name, generate_id, #html_attributes, i18n_scope, #merge_data_attributes, #merge_tailwind_classes, #options, stimulus_name, translate, #validate_aria_label!
Methods included from AttributesHelper
#aria, #data, #merge_aria, #merge_data, #merge_prefixed_attribute_hashes, #prepend_action, #prepend_controller, #prepend_data_attribute