Bonusway design system

Feedback

BottomBar

The fixed bottom shell StickyBanner and CookieConsentBanner share — edge-to-edge on phones, a centred floating card from sm: up — so the two look like one system even though the shell knows nothing about the buttons inside it.

import BottomBar from '@/components/ui/BottomBar';

Source: src/components/ui/BottomBar.tsx

Examples

Props

<BottomBar> props

PropTypeDefaultDescription
titlerequiredstring—

Accessible name of the region — the bar's own heading text.

childrenrequiredReactNode——
classNamestring''—

Accessibility

  • Rendered as a labelled region (`role="region"`, `aria-label` from `title`) so a screen-reader user can find and skip it.

Usage

Do

  • Decide server-side whether it mounts; one bar at a time — MasterLayout shows the cookie prompt before the phone reminder.

Don’t

  • Add a close control to a consent prompt — an unanswered prompt stays, as production's does.

Related:StickyBanner

Deze website maakt gebruik van cookies

We gebruiken cookies om de ervaring van onze website te verbeteren alsook de content die we jou geven. Essentiële cookies zijn noodzakelijk om onze dienst correct te laten functioneren. Indien je akkoord gaat dat we persoonlijke informatie verzamelen door middel van essentiële en marketing cookies, selecteer dan ´Aanvaard alle cookies´. Je kan jouw keuze steeds wijzigen bij de Cookie Settings.

Cookie settings