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

Acest site folosește cookie-uri

Folosim cookie-uri pentru a îmbunătăți experiența pe site-ul nostru și a personaliza conținutul pe care ți-l oferim. Cookie-urile esențiale sunt necesare pentru ca serviciul nostru să funcționeze corect. Dacă ești fericit cu colectarea de informații despre tine prin utilizarea cookie-urilor esențiale și de marketing, atunci „Acceptă toate cookie-urile”. Poți oricând să îți schimbi preferința accesând Setările Cookie.

Setări cookie