Module: LocoMotion::Concerns::LinkableComponent
- Extended by:
- ActiveSupport::Concern
- Included in:
- Daisy::Actions::ButtonComponent, Daisy::DataDisplay::AvatarComponent, Daisy::DataDisplay::BadgeComponent, Daisy::DataDisplay::CardComponent, Daisy::DataDisplay::FigureComponent, Daisy::DataDisplay::StatComponent, Daisy::DataDisplay::TextRotateComponent::ItemComponent, Daisy::Feedback::AlertComponent, Daisy::Layout::AuraComponent, Daisy::Layout::HoverComponent, Daisy::Navigation::DockSectionComponent, Daisy::Navigation::LinkComponent
- Defined in:
- lib/loco_motion/concerns/linkable_component.rb
Overview
Include this module to enable link functionality in a component. When an href is provided, the component will render as an tag.
Also pulls in TurboableComponent and ActionableComponent so every
linkable component gains the turbo_frame, turbo_method,
turbo_confirm, and action options for free — those Turbo and Stimulus
data attributes only make sense on link/button elements.