1. components
  2. navigation
  3. svelte

Navigation

Provides navigation inerfaces for large, medium, and small screens.

Rail

  • Recommended for medium to large screens.
  • Ideal for horizontal screen layouts.
  • Should be fixed to the left or right of the viewport.
  • Supports 3-7 tiles.

Expanded Mode

Apply the expanded property to enable expanded mode. Each tile will resize and used the expanded label.

Bar

  • Recommended for small screens.
  • Ideal for vertical screen layouts.
  • Should be fixed to the bottom of the viewport.
  • Supports 3-5 tiles.
  • Consider progressive enhancement with the Virtual Keyboard API.

(Content)

Tiles

Tiles are universal between Rails and Bars. They default to buttons, but will convert to anchors when an href is provided. When implementing value for selection, each item will reflect the active state automatically. If you wish to set this state manually, use the selected property.

Anchor