Class: Irelia::Sidebar::Navigation::Preview

Inherits:
ComponentPreview
  • Object
show all
Defined in:
app/components/irelia/sidebar/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
15
# File 'app/components/irelia/sidebar/navigation/preview.rb', line 7

def default
  render(Irelia::Sidebar::Navigation::Component.new) do |navbar|
    navbar.with_link(url: "#", icon: "fa fa-home", active: true) { "Home" }
    navbar.with_link(url: "#", icon: "fa fa-globe") { "Websites" }
    navbar.with_link(url: "#", icon: "fab fa-github") { "Repositories" }
    navbar.with_link(url: "#", icon: "fa fa-book") { "Guide & documenation" }
    navbar.with_link(url: "#", icon: "fa fa-gear") { "Settings" }
  end
end