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
| Name | Type | Default | Description |
|---|---|---|---|
title | string | — | The institution's name. Truncates with an ellipsis rather than wrapping. #title slot overrides it. |
eyebrow | string | — | 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. |
scroller | HTMLElement | string | null | null | The scrolling element (or a selector) when the page scrolls inside a pane. The component then drives the stylesheet's keyframes from that scroll position. |
tight | boolean | false | Pin the tightened navbar state. |
rest | boolean | false | Pin the tall at-rest state, so a static preview does not tighten as the page scrolls. |
default | slot | — | Content beside the name, inside mast__in. |