Components · Navigation
AppRail
The leftmost desktop column, on the frame, under the web top bar — the product's destinations at the top, help and settings at the bottom.
import { AppRail } from "@botiverse/raft-ui";AppRail is the desktop's leftmost column of destinations, on the yellow frame, under the web top bar. The product's destinations are at the top, and help and settings sit at the bottom; the server and the bell are in the top bar (Page structure). Selecting a destination fills the Sidebar next to it.
When to use
Which destinations a product has, and in which order, is on its own page (Raft Chat).
Anatomy
AppRailRoot: the column, onlayer-frame, with aline-seamalong its right edge.AppRailHeader: the header-height row at the top, holding the workspace tile. Its seam lines up with the sidebar's and the panel's (Page structure). It is left out when the web top bar is shown.AppRailNav: the destinations.AppRailItem: one destination: anAppRailItemIconwith a 20px icon, and anAppRailItemLabelwith its name. An App's item shows the App's registered icon instead, 20px with a 5px radius, inside the same 36px item and sticker.- More: the last item of
AppRailNav, anAppRailItemwithellipsisthat opens a DropdownMenu. It holds the places that don't fit the window, the places not on the person's list, and Edit navigation bar (Navigation). AppRailItemAttention: the pink pixel on an item, with text for assistive technology. It is built onAppRailItemIndicator.AppRailItemBadge: a count in the same corner. Not recommended, and to be removed: a rail icon shows only the dot, never a number (Badge).AppRailFooter: notifications, help and settings. Notifications sit here only when there is no web top bar; with it, the bell is in the top bar (Navigation).
Without the web top bar (an older desktop build, the app embedded in another host, a server's public page), the rail has its header with the workspace tile, search is a destination and the bell sits in the footer:
Variants
The product ships the icons-only rail, and raft-ui implements only that one (Open questions). A labeled rail needs 68px plus the seam to fit names such as Computers (Spacing).
States
- Selected: a sticker on the frame, white in light mode and yellow in dark mode (States).
- Leaves Raft: where this click on an App's item won't open the App in Raft, a ↗ (
ArrowUpRight, 12px, in the text's color, the size TextLink's mark has at 14px) sits over the bottom right corner of the App's icon, clear of the attention dot's corner (Links that leave Raft). That is the web, where it opens a new browser tab, and a desktop app with no conversation to open it beside, or with no tabs. Where the click opens it in Raft, the item has no mark (AppFather, Kirby, Jasper, 2026-11-24, #proj-workspace:#415).- An App's icon is any image, so cut the icon's corner away under the mark with a mask rather than paint a plate over it: the hover and selected fills then show through as on the rest of the item, and the mark reads on any icon.
- An App's item takes the selected sticker only when the App fills the main area. Until then it never does: opened in a browser tab the person isn't in Raft, and opened beside a conversation the main area is Chat, which stays selected.
- Attention: one pink pixel at the top right of the icon, never a count. The selected item never shows it, with no exception. An App's item shows no attention dot until Apps can report one.
- Hover and press lay
fill-frame-mediumover the item, the medium tier on the frame (Hover and press). The selected item doesn't change on hover.
Behavior
- Space every item, in the nav and in the footer, the same way: with a mouse 36px items (
rail-item), 4px apart, 6px from both ends of the rail; on a touch screen 40px items, 6px apart, 8px from both ends. Don't wrap the footer tools in fixed-height cells. - Under the header, start the first item as far below the header's seam as the rail's ends: 6px with a mouse, 8px on a touch screen, the same as under the web top bar and at the bottom of the rail, so the rail has one inset.
- With the web top bar, the rail has no header and the server moves to the top bar, as the workspace button (Page structure).
- In a window shorter than 600px, the rail shrinks with the headers (Responsive layout), and its items keep 6px from both ends.
- While an item is being dragged, open nothing on hover, neither tooltips nor the footer's popovers, except More, the rail's last item: held over it for a short pause, it opens its menu, so the item can be let go in it (not for a place that can't be removed, which only shows its refusal) (Navigation). The only message is the drop's own, such as "Chat and Activity stay on the rail" (Drag and drop).
- When the window is too short for every item, the last places go into More, in order, at the top of its menu. More stays last and visible, takes the selected sticker when the current place is inside it, and its dot when a place inside it has one. The rail never scrolls: a place out of view would be lost, while More always says where it went.
Content
- Name every item, even in the icons-only rail. Names are in sentence case (Typography).
Accessibility
AppRailNavrenders anav. Name it witharia-label="Primary".AppRailItemrenders the Base UI Button;selectedsetsaria-pressed. For an item that navigates, render a link (render={<a href="…" />}withnativeButton={false}) and setaria-current="page"on the selected one: raft-ui sets neither on a link.AppRailItemLabelis visually hidden and names the item. Repeat the name in a Tooltip on the right for pointer users.- Say the ↗ in the item's name, after it: "Stamp (opens in a new tab)". The mark itself is
aria-hidden. - Say the attention dot in the item's name with
AppRailItemAttention'stitle: "Activity, new". The pixel itself isaria-hidden. - Name the workspace tile after the server and what it does: "Raft HQ, switch server".
Rules
- Make the workspace tile ink with the server's initial in yellow. It hovers, presses and shows its open list with
overlay-sticker-ink-medium(6% paper), since ink laid over ink doesn't show (Hover and press). It opens the server list next to the tile (Built from existing parts). In the mobile apps' desktop mode the tile is the only server entry and opens the phone server tab's popover instead, with no row for the server's pages: Members is on the rail, Settings at its bottom, and Computers in Settings (Navigation, Raft Chat). - Make an App's item the one piece of Raft's chrome that says which App fills the main area, since Raft draws no head over it (AppFather, 2026-11-24, #proj-workspace:#415): show the App's registered icon, its name in the tooltip, and give it a ContextMenu with the App's actions first (Reload and Copy link, as in a pushed App page's ⋮, then App details; no Open in browser: the system browser isn't signed in to Raft, Lagoon, Kirby, 2026-11-24, #proj-workspace:#415), then Move up, Move down and Remove from navigation bar, then Edit navigation bar. Move up is disabled on the first place and Move down on the last. Raft's own places have the last two groups only, and Chat and Activity, which move but can't be removed, have no Remove from navigation bar; every action stays reachable without the menu, from More's Edit navigation bar (Navigation). Reload is there only once the App fills the main area; an App opened in a browser tab or beside a conversation has nothing on the rail to reload.
- Give the places in More the same context menu as on the rail. A place on the list that didn't fit keeps Move up, Move down and Remove from navigation bar; a place under More places, not on the list, has Add to navigation bar instead. A plain click opens the place, so adding one is never in its way (AppFather, Kirby, 2026-11-24, #proj-workspace:#415).
API
AppRailFooter, AppRailHeader
Also takes the attributes of its element.
AppRailItem
Also takes the attributes of its element.
AppRailItemAttention
AppRailItemBadge, AppRailItemIcon
Also takes the attributes of its element.
AppRailItemIndicator
Also takes the attributes of its element.
AppRailItemLabel, AppRailNav, AppRailRoot
Also takes the attributes of its element.
Related
Changes
- 0.107.3 · Design SystemA sticker's ink edge follows its size ([Shape › Stroke widths](https://raft-design.botiverse.build/foundations/shape/#stroke-widths)): a sticker that carries a label (a number, a word, or an icon that stands for one) and is under 24px tall takes a 1px ink edge, and in dark mode a 1px die-cut edge outside it. A larger sticker, or one with no label that relies on its edge for its shape, keeps 1.5px: buttons, the selected row, tab and segment, avatars and their corner marks (and an avatar stack's +N count), status pixels and attention dots. Changed in this release:
Badge(appearance="solid"),SidebarItemCount,SidebarItemIndicator,AppRailItemBadge, the new count inMessageRepliesSummary, a mention of you (MessageReferenceText variant="primary"), and theStepsnumber. - 0.6.0 · Breaking ChangesProps that no longer change anything are removed:
Badgeuppercase;Checkboxsize,variant,color;Statuspulse,attention(status never animates);Switch/SwitchThumbsize;SidebarItemvariant;SidebarItemCount/SidebarItemIndicatorvariantandappearance(the count is always the pink sticker, the indicator the yellow @);NotificationCenterActionButtonvariant;DrawerContentwidth(one-go forms use the wideDialog);AppRailItemIndicatorattention;AppRailItemAttentionchildren;Stepssize,track,renderIndicator,renderTraveler;FilePreviewBadgetype,color. Remove them at call sites. - 0.4.0 · ChangedAppShell no longer draws column dividers.
AppShellRailSlotandAppShellSidebarSlotdropped their border classes in both themes. The rail|sidebar divider now lives onAppRailRoot(brutal); seam borders the shell used to own (e.g. sidebar|main with an inset main panel) must be added by the caller. ([e219fd8](https://github.com/botiverse/rui/commit/e219fd8))