OfflineBanner

A floating note that the connection has gone.

Import it from rei-kit/app: import { OfflineBanner } from 'rei-kit/app'

Open OfflineBanner in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.

Usage

<script setup lang="ts">
import { OfflineBanner } from 'rei-kit/app'
</script>

<template>
  <OfflineBanner label="You are offline. Changes will sync when you are back." />
</template>

Props

Props
PropTypeRequired or defaultWhat it is for
labelstringyesThe message. Required, because the kit has no language of its own.

About rei-kit

rei-kit is an accessible Vue 3 and Tailwind CSS 4 component library: 106 components, themed by role rather than by colour on three independent axes — ten WCAG-checked palettes, four materials and light or dark, each switched with one attribute. Typed, tested, SSR-safe, no runtime dependencies, MIT.

pnpm add rei-kit · npm · GitHub