Class: Uchi::Flowbite::BreadcrumbItem::Current

Inherits:
BreadcrumbItem
  • Object
show all
Defined in:
app/components/uchi/flowbite/breadcrumb_item/current.rb

Overview

Renders the current page breadcrumb item. Current items are rendered as non-interactive spans with different styling.

Examples:

Current page item

<%= render Uchi::Flowbite::BreadcrumbItem::Current.new { "Current Page" } %>

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Current

Returns a new instance of Current.



13
14
15
# File 'app/components/uchi/flowbite/breadcrumb_item/current.rb', line 13

def initialize(**options)
  super(href: nil, **options)
end