Class: Shadcn::CarouselNextComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::CarouselNextComponent
- Defined in:
- app/components/shadcn/carousel_component.rb
Overview
Next button component
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(orientation: :horizontal, **options) ⇒ CarouselNextComponent
constructor
A new instance of CarouselNextComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(orientation: :horizontal, **options) ⇒ CarouselNextComponent
Returns a new instance of CarouselNextComponent.
223 224 225 226 |
# File 'app/components/shadcn/carousel_component.rb', line 223 def initialize(orientation: :horizontal, **) super(**) @orientation = orientation.to_sym end |
Instance Method Details
#call ⇒ Object
228 229 230 |
# File 'app/components/shadcn/carousel_component.rb', line 228 def call content_tag(:button, , ) end |