Class: Flowbite::Pagination::ChevronLeftIcon
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Flowbite::Pagination::ChevronLeftIcon
- Defined in:
- app/components/flowbite/pagination/chevron_left_icon.rb
Overview
Renders the chevron-left icon shown on a pagination's previous link.
This is automatically used by PreviousLink, but can be used standalone if needed.
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_left_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: "m15 19-7-7 7-7" ) end end |