Class: Irelia::Navbar::Navigation::Preview
- Inherits:
-
ComponentPreview
- Object
- ComponentPreview
- Irelia::Navbar::Navigation::Preview
- Defined in:
- app/components/irelia/navbar/navigation/preview.rb
Instance Method Summary collapse
-
#default ⇒ Object
You can specify the container class for the default template self.container_class = “w-1/2 border border-gray-300”.
Instance Method Details
#default ⇒ Object
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 |