Shadix.Website.Nav (shadix v0.0.1)

Copy Markdown View Source

Shared site chrome for the docs website: the sticky top navigation bar and the left-hand component sidebar. Used by both Shadix.Website.HomeLive and Shadix.Website.Components.ComponentLive so the two share one header/sidebar.

The sidebar is built from Shadix.Website.Components.Catalog, so every documented component links to its own /components/:slug page.

Summary

Functions

sidebar(assigns)

Attributes

  • active_slug (:string) - Slug of the component page currently shown. Defaults to nil.

top_nav(assigns)

Attributes

  • active (:atom) - Active top-level page: :home | :components. Defaults to nil.