Krizaka UI
Krizaka UI

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.

Web · ✓Mobile · n/aBureau · n/aExpérimentalNavigation
Niveau de support
Expérimental
Taille
0.9 kB gzip, budget 0.8 kB
Qui l'utilise
Aucun produit en production ne l'importe encore Compté dans l'inventaire daté du 2026-11-23.
import { PlatformBar } from "@krizaka/ui/platform-bar";

Web uniquement — React, depuis @krizaka/ui/platform-bar. Expérimental : créé pour un besoin déposé, il peut changer ou disparaître à toute version mineure, jusqu'à ce qu'une première app l'utilise.

  • Mobile · n/a. A public page's strip; an app has none.
  • Bureau · n/a. A public site's page, not a window of the Mac app.

Pourquoi il est là. The platform's strip above a shop page it hosts for a customer: Folioviv's hosted storefronts (krizaka-internal#3746).

Quand l’utiliser

  • 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).

Quand ne pas l’utiliser

  • A development-version band above an app's own bar.À la place : Environment notice
  • The navigation of a Krizaka site or a product's own pages.À la place : Nav bar

Installation

Installer

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Importer

import { PlatformBar } from "@krizaka/ui/platform-bar";

Exemples

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.

PropTypeDéfautDescription
brandrequisReactNode—The platform's mark and name, usually one link home.
labelrequisstring—The platform's name, the region's accessible name (« Folioviv »). Passed translated.
endReactNode—The host's control at the end: LanguageSwitch of @krizaka/ui/language-switch.
noticePlatformBarNotice—The one line for what this page is (a development version, a demonstration). Omit it on a real, live page.

Accessibilité

  • A labelled region (label); the dot is decorative, the notice is text.
  • The notice wraps under the mark on a phone, never truncated.

Bonnes pratiques

  • 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.
  • end takes LanguageSwitch (a client island); the bar itself ships no JavaScript.
  • One short sentence in notice, passed translated; omit notice on a live page.

Générée depuis le code de @krizaka/ui 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page