Class: Shadcn::PaginationContentComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/shadcn/pagination_content_component.rb

Overview

Pagination Content component - container for items Uses a single polymorphic slot to maintain ordering between items and ellipses

Constant Summary collapse

BASE_CLASSES =
"flex flex-row items-center gap-1"

Instance Attribute Summary

Attributes inherited from BaseComponent

#class_name, #data, #html_options

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



33
34
35
# File 'app/components/shadcn/pagination_content_component.rb', line 33

def call
  (:ul, list_content, class: merge_classes(BASE_CLASSES))
end