Class: Shadcn::PaginationPreviousComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::PaginationPreviousComponent
- Defined in:
- app/components/shadcn/pagination_previous_component.rb
Overview
Pagination Previous button
Constant Summary collapse
- BASE_CLASSES =
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-9 px-4 py-2 gap-1 pl-2.5"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(href: nil, disabled: false, **options) ⇒ PaginationPreviousComponent
constructor
A new instance of PaginationPreviousComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(href: nil, disabled: false, **options) ⇒ PaginationPreviousComponent
Returns a new instance of PaginationPreviousComponent.
8 9 10 11 12 |
# File 'app/components/shadcn/pagination_previous_component.rb', line 8 def initialize(href: nil, disabled: false, **) super(**) @href = href @disabled = disabled end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 |
# File 'app/components/shadcn/pagination_previous_component.rb', line 14 def call content_tag(:li) do link_content end end |