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

Denna webbplats använder cookies.

Vi använder cookies för att förbättra din upplevelse på vår webbplats och anpassa innehållet vi tillhandahåller dig. Viktiga cookies är nödvändiga för att vår tjänst ska fungera korrekt. Om du går med på att vi samlar in information om dig genom användningen av nödvändiga och marknadsförande cookies, välj "Acceptera alla". Du kan alltid ändra dina preferenser genom att besöka Cookie -inställningar.

Cookie -inställningar