Class: Shadcn::CarouselPreviousComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::CarouselPreviousComponent
- Defined in:
- app/components/shadcn/carousel_component.rb
Overview
Previous button component
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(orientation: :horizontal, **options) ⇒ CarouselPreviousComponent
constructor
A new instance of CarouselPreviousComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(orientation: :horizontal, **options) ⇒ CarouselPreviousComponent
Returns a new instance of CarouselPreviousComponent.
168 169 170 171 |
# File 'app/components/shadcn/carousel_component.rb', line 168 def initialize(orientation: :horizontal, **) super(**) @orientation = orientation.to_sym end |
Instance Method Details
#call ⇒ Object
173 174 175 |
# File 'app/components/shadcn/carousel_component.rb', line 173 def call content_tag(:button, , ) end |