Class: Protos::Carousel

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/carousel.rb,
lib/protos/carousel/item.rb,
lib/protos/carousel/actions.rb

Defined Under Namespace

Classes: Actions, Item

Constant Summary collapse

SNAP_POINTS =

DOCS: A carousel component that contains items that can be scrolled through in a mobile friendly manner. daisyui.com/components/carousel/

{
  none: "",
  center: "carousel-center",
  end: "carousel-end"
}.freeze

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#actionsObject



31
# File 'lib/protos/carousel.rb', line 31

def actions(...) = render Actions.new(...)

#itemObject



29
# File 'lib/protos/carousel.rb', line 29

def item(...) = render Item.new(...)

#view_templateObject



25
26
27
# File 'lib/protos/carousel.rb', line 25

def view_template(&)
  div(**attrs, &)
end