Class: Irelia::Navbar::Navigation::Preview

Inherits:
ComponentPreview
  • Object
show all
Defined in:
app/components/irelia/navbar/navigation/preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject

You can specify the container class for the default template self.container_class = “w-1/2 border border-gray-300”



7
8
9
10
11
12
13
14
# File 'app/components/irelia/navbar/navigation/preview.rb', line 7

def default
  render(Irelia::Navbar::Navigation::Component.new) do |nav|
    nav.with_link(url: "#", active: true) { "Home" }
    nav.with_link(url: "#") { "Features" }
    nav.with_link(url: "#") { "Pricing" }
    nav.with_link(url: "#") { "Documentation" }
  end
end