Class: Shadcn::Marker::Icon::Component
- Inherits:
-
ApplicationViewComponent
- Object
- ViewComponent::Base
- ApplicationViewComponent
- Shadcn::Marker::Icon::Component
- Defined in:
- app/components/shadcn/marker/icon/component.rb
Overview
MarkerIcon. Its own file rather than a part declaration for one
reason: upstream stamps aria-hidden on it (marker.tsx:46), and part
declares a slot, classes and a tag and deliberately no other attribute.
Constant Summary
Constants inherited from ApplicationViewComponent
ApplicationViewComponent::CONTENTS_STYLE, ApplicationViewComponent::VOID_TAGS
Instance Attribute Summary
Attributes inherited from ApplicationViewComponent
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
17 18 19 |
# File 'app/components/shadcn/marker/icon/component.rb', line 17 def element_attributes(**defaults) super(**{ "aria-hidden" => "true" }.merge(defaults)) end |