Class: Flowbite::BreadcrumbSeparator

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

Overview

Renders a breadcrumb separator icon.

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

Examples:

Standalone usage

<%= render Flowbite::BreadcrumbSeparator.new %>

Instance Method Summary collapse

Instance Method Details

#callObject



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

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