Class: Flowbite::BreadcrumbHome
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Flowbite::BreadcrumbHome
- Defined in:
- app/components/flowbite/breadcrumb_home.rb
Overview
Renders a breadcrumb home icon.
This is typically used as a prefix icon in the first breadcrumb item, but can be used standalone if needed.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/components/flowbite/breadcrumb_home.rb', line 12 def call tag.svg( class: "w-3 h-3 me-2.5", "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20" ) do tag.path( d: "m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z" ) end end |