Class: Flowbite::Pagination::ChevronRightIcon

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/flowbite/pagination/chevron_right_icon.rb

Overview

Renders the chevron-right icon shown on a pagination's next link.

This is automatically used by NextLink, but can be used standalone if needed.

Examples:

Standalone usage

<%= render Flowbite::Pagination::ChevronRightIcon.new %>

Instance Method Summary collapse

Instance Method Details

#call ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/components/flowbite/pagination/chevron_right_icon.rb', line 13

def call
  tag.svg(
    class: "w-4 h-4 rtl:rotate-180",
    "aria-hidden": "true",
    xmlns: "http://www.w3.org/2000/svg",
    width: 24,
    height: 24,
    fill: "none",
    viewBox: "0 0 24 24"
  ) do
    tag.path(
      stroke: "currentColor",
      "stroke-linecap": "round",
      "stroke-linejoin": "round",
      "stroke-width": "2",
      d: "m9 5 7 7-7 7"
    )
  end
end