Layout / App shell

Layout

App shell

Fixed sidebar, floating glass topbar and work area: the frame every Ecosphere screen sits in.

import { EcoAppShell, EcoNavItem, EcoNavSection } from "vue-ecosphere"

App shell

The brand lockup is type: an accent tile with one letter, then the product name with its qualifier muted. The rail is a layout state on body (data-rail), so one page has one rail: this demo stays expanded, and the button at the foot of this site's own sidebar shows the rail. Below 1024px the sidebar becomes a drawer behind the burger.

Requests

Topbar styles

Inset is the default and the recommended topbar. Inset and island stay transparent at rest and lift into frosted glass as the work area scrolls, with a lit hairline in place of a shadow; auto-hide slides the bar away while you read down and brings it back as soon as you scroll up. None drops the topbar and puts the user beside the sidebar's collapse button. Use auto-hide on the pages that need the room, such as long reading or long forms, rather than everywhere. Scroll inside the frame.

Requests

Operations

Requests

Everything waiting on an owner.

Request 1040
Request 1041
Request 1042
Request 1043
Request 1044
Request 1045
Request 1046
Request 1047
Request 1048
Request 1049
Request 1050
Request 1051
Request 1052
Request 1053

Nav item

The active item takes a 2px accent bar, never a filled pill. In the rail, each item's label becomes a hover tooltip.

EcoAppShell

NameTypeDefaultDescription
brandstring"Ecosphere"Product name in the lockup. The system ships no logo file: set it in type.
brandSuffixstring—Qualifier after the name, set in --text-muted ("Campus").
brandLetterstring—Letter on the 26px accent tile. Defaults to the first letter of brand.
wherestring—Where you are, in the topbar. The #topbar slot replaces it.
v-model:railbooleanfalseCollapse to the rail: puts data-rail on body (removed on unmount), which re-points --sidebar-w.
v-model:openbooleanfalseThe off-canvas drawer below 1024px. Escape, the scrim and following a link close it.
sidebarLabel / navLabelstring"Main" / "Primary"Accessible names of the sidebar landmark and the navigation.
contentTag"main" | "div""main"Element of the work area. `main` is the screen's main landmark; use `div` only when the slot renders its own `<main>`.
topbarStyle"inset" | "island" | "static" | "none""inset"inset (recommended): sticky, transparent at rest, lifts into a floating glass bar once the page scrolls (a lit hairline, no shadow). island: the same, as a centred glass capsule. static: the older in-flow frosted bar. none: no topbar on desktop; #user moves to the sidebar foot beside the rail button, and below 1024px a slim bar keeps the burger.
topbarAutoHidebooleanfalseWith inset or island: slide the bar away while scrolling down, bring it back on any scroll up. It stays while focus is inside it. Turn it on for the pages that need the room (long reading, long forms), not app-wide: bind it to the route, as in :topbar-auto-hide="!!route.meta.autoHide".
scrollerHTMLElement | string | nullnullThe element that scrolls (or a selector), for the floating topbar to follow. Omit for the document.
#userslot—The signed-in user (avatar, account menu): after #topbar-end, or in the sidebar foot with topbarStyle none.
#brandslot—Replace the lockup with your own mark.
#navslot—EcoNavSection and EcoNavItem children.
#sidebar-footslot—Content in the sidebar foot, before the rail button.
#topbar / #topbar-endslot—Replace topbar__where; controls at the end of the topbar (notifications, account).
defaultslot—The work area: capped at --content-max, with the --page-x gutter on its left. .work__top, .split, .listpane and .page bring their own spacing; anything else gets the page's top, right and bottom spacing from the work area itself.

EcoNavItem and EcoNavSection

NameTypeDefaultDescription
labelstring—Label, and the rail tooltip (data-label). Required.
iconstring—RemixIcon name without the ri- prefix.
hrefstring—Plain link.
tostring | RouteLocation—Router destination; uses RouterLink only when the app has vue-router installed.
activebooleanfalseCurrent page: is-active and aria-current="page". With to, the route match also counts.
exactbooleanfalseWith to: only an exact route match is active.
countnumber | string—Count after the label (nav-item__n); hidden in the rail.
EcoNavSection labelstring—Section label between groups (eyebrow navsec); hidden in the rail.