Platform bar
The strip of a platform above a page it hosts for its customer: its mark on the left, the language switch on the right and, when the page is not the real thing, one line that says so — the development band and the demo line merged. Static, server-rendered, no client code.
- Domain
- Navigation & shell
- Support level
- Size
- 0.9 kB gzip, budget 0.8 kB
- Who uses it
- No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { PlatformBar } from "@krizaka/ui/platform-bar";Web only — React, from @krizaka/ui/platform-bar. Experimental: created for a filed need, it may change or go in any minor version, until its first app uses it.
- Mobile · n/a. A public page's strip; an app has none.
- Desktop · n/a. A public site's page, not a window of the Mac app.
Why it is here. The platform's strip above a shop page it hosts for a customer: Folioviv's hosted storefronts (krizaka-internal#3746).
When to use
- Above any public page a Krizaka product hosts for a customer: a shop on Folioviv, a shared Verikora report, a public Sovkora status.
- To say, in one line, that the page is a demonstration or a development version (
notice).
When not to use
- A development-version band above an app's own bar.Use instead: Environment notice
- The navigation of a Krizaka site or a product's own pages.Use instead: Nav bar
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { PlatformBar } from "@krizaka/ui/platform-bar";Examples
A demonstration shop
The mark, one line that says the data is fictitious, and the language switch, in French.
A live page
No notice: the mark and the language only.
Props
The platform's bar above a hosted page: its mark, one line about the page, the language switch. Not sticky, no client JS.
| Prop | Type | Default | Description |
|---|---|---|---|
brandrequired | ReactNode | — | The platform's mark and name, usually one link home. |
labelrequired | string | — | The platform's name, the region's accessible name (« Folioviv »). Passed translated. |
end | ReactNode | — | The host's control at the end: LanguageSwitch of @krizaka/ui/language-switch. |
notice | PlatformBarNotice | — | The one line for what this page is (a development version, a demonstration). Omit it on a real, live page. |
Accessibility
- A labelled region (
label); the dot is decorative, the notice is text. - The notice wraps under the mark on a phone, never truncated.
Best practices
- Never sticky: it scrolls away with the page and cannot cover the customer's header.
- No Explorer, pricing, docs or « sign in » link: the visitor is on the customer's page, not on the platform's.
endtakesLanguageSwitch(a client island); the bar itself ships no JavaScript.- One short sentence in
notice, passed translated; omitnoticeon a live page.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub