datui
Color scheme

Navigation

Epic

Tabbed app shell: shows the active story (a View or Root) and a bottom Tabbar. Switching is instant and keeps scroll per story.

import { Epic } from "datui";

Examples

With a tabbar

News

Accessibility

  • Story content is rendered inside <main>; the Tabbar is a labelled <nav>.
  • Mark the current tab with selected on TabbarItem (sets aria-current="page").
  • Pressing a tab keeps focus on the tab; scroll position is saved and restored per story.

API

Epic

Tabbed app shell: shows the active story inside `<main>` and the `tabbar` below. Switching is instant; scroll is kept per story.

PropTypeDefaultDescription
activeStory (required)string—Id of the story (`View` or `Root`) to show.
classNamestring—
contentAsElementType<any, keyof IntrinsicElements>mainElement wrapping the active story. Use `div` when the page already has a `<main>`.
tabbarReactNode—Bottom navigation, usually a `Tabbar`. Stays pinned to the bottom of the viewport or scroll container.