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

Tämä verkkosivusto käyttää evästeitä

Käytämme evästeitä parantaaksemme käyttökokemustasi sivustollamme ja mukauttaaksemme sinulle tarjoamaamme sisältöä. Tärkeät evästeet ovat välttämättömiä jotta palvelumme toimii oikein. Jos suostut siihen, että keräämme tietoja sinusta käyttämällä välttämättömiä evästeitä ja markkinointievästeitä, valitse "Hyväksy kaikki". Voit aina muuttaa valintaasi evästeasetuksista.

Evästeasetukset