Module: UI::ApplicationHelper

Defined in:
app/helpers/ui/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_lucide_icon(name, options = {}) ⇒ String

Render a Lucide icon

Examples:

Basic usage

lucide_icon(:check)

With custom classes

lucide_icon(:check, class: "size-4")

With multiple attributes

lucide_icon("chevron-right", class: "ml-auto h-4 w-4")

Parameters:

  • name (String, Symbol)

    Icon name (e.g. :check, ‘chevron-right’)

  • options (Hash) (defaults to: {})

    HTML attributes to add to the SVG element

Returns:

  • (String)

    SVG markup for the icon



16
17
18
# File 'app/helpers/ui/application_helper.rb', line 16

def ui_lucide_icon(name, options = {})
  lucide_icon(name.to_s, options)
end