Layout / Masthead

Layout

Masthead

The institution's name where a topbar would be, tall at rest and tightening into a navbar as the page scrolls.

import { EcoMasthead } from "vue-ecosphere"

Tightening on scroll

Scroll the pane. Over the first 96px the eyebrow collapses, the padding closes and the name drops to 16px. Page titles and actions belong in a PageHeader below it, inside the scroll.

Academic year 2026–27 · term 2

Ridgeview Public School

Institution setup

Classes, sections and rooms

Everything downstream reads from here — the timetable validator, the registers, the report-card template and what guardians see in their app.

States

At rest; the same header after 96px; a name longer than the header.

Academic year 2026–27 · term 2

Ridgeview Public School

Ridgeview Public School

Academic year 2026–27 · term 2

Sri Ramakrishna Vidyamandir Senior Secondary

API

NameTypeDefaultDescription
titlestring—The institution's name. Truncates with an ellipsis rather than wrapping. #title slot overrides it.
eyebrowstring—Year and term, and nothing else: it is the first thing to disappear. #eyebrow slot overrides it.
as"h1" | "h2" | "p""h1"Element for the name.
scrollerHTMLElement | string | nullnullThe scrolling element (or a selector) when the page scrolls inside a pane. The component then drives the stylesheet's keyframes from that scroll position.
tightbooleanfalsePin the tightened navbar state.
restbooleanfalsePin the tall at-rest state, so a static preview does not tighten as the page scrolls.
defaultslot—Content beside the name, inside mast__in.