All products

Icon rail layoutOfficial

A frame for BitaKit apps with a navigation rail: icons with captions at the side, tabs at the bottom of a phone.

bitakit · Plugin for every BitaKit app

Type
Package
Needs a build
Kind
Plugin
BitaKit
Version
0.3.0
Latest
Works with
Any app
Every BitaKit app
Contains
2
parts
Publisher
bitakit
Official

Preview

5 pictures

Icon rail layout, picture 1 of 5
Icon rail layout, picture 2 of 5
Icon rail layout, picture 3 of 5
Icon rail layout, picture 4 of 5
Icon rail layout, picture 5 of 5

About

A frame for BitaKit apps with a navigation rail: a narrow strip of icons beside the page, and tabs at the bottom of a phone. The page gets almost the whole width, and the navigation stays one tap away.

The Icon rail layout at a desktop width

npm install @bitakit/icon-rail-layout
npx bitakit shell use @bitakit/icon-rail-layout

The package is a BitaKit plugin (ID icon-rail) and needs @bitakit/shell. It brings two variants of the app's frame, so installing it changes nothing until one is chosen:

| Variant | Looks like | Choose with | | ------------------- | --------------------------------------------- | ----------------------------------------- | | icon-rail:default | Icons with the entry's title as a caption | npx bitakit shell use icon-rail | | icon-rail:compact | Icons alone; the title is the entry's tooltip | npx bitakit shell use icon-rail:compact |

npx bitakit shell reset returns to Shell's own frame.

What it shows where

  • A bar across the top: the app's brand, the shell.brand slot, the header places, the toolbar and the account menu.
  • From 768 px: the rail at the start of the page, with every navigation entry. An entry without an icon shows its first letter; a badge sits on the entry's corner.
  • On a phone: the entries as tabs at the bottom. With more than five entries, or when the app hands its frame a brand or an account menu, the last tab is "More": it opens the other entries, the brand and the account menu in a drawer.
  • The page, with the places around it and the footer, as in every frame.

Features change nothing: their navigation Actions, toolbar Actions and header widgets appear in the rail as they do in Shell's own frame. The Layout settings that describe Shell's own sidebar and navigation bar are not offered while the Icon rail layout renders; content width, density, corners and themes apply as usual.

Good to know

  • Captions are one line. Short titles ("Inbox", "Projects") read best; a long one is cut with an ellipsis.
  • The texts are English and German (@bitakit/icon-rail-layout/locales/<lang>.json, the key icon-rail); merge them like every package's catalogs.
  • Right-to-left: the rail moves to the other side with the reading direction.

What's inside

App frames
2

Requirements

  • shell

Permissions

It adds and checks no permissions.

Information

Publisher
bitakit · Official
Type
PackageNeeds installation: add it to the app's code and build the app.
Kind
Plugin
Works with
Every BitaKit app
Categories
Shells