BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/more-shadcn-noair/update-banner

Update Banner

more-shadcn-noair/update-banner
FreeComponent

A reload prompt that appears when a new service worker is waiting to take over.

Live preview

live · rendered by the registry
Rendered by more-shadcn-noair on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://more-shadcn.noair.fun/r/update-banner.json

Source

registry itemmore-shadcn.noair.fun/r/update-banner.json · first 6 KB
1<script lang="ts" module>
2 import { tv, type VariantProps } from 'tailwind-variants';
3
4 /** Message a waiting service worker must handle to activate immediately. */
5 export const SKIP_WAITING_MESSAGE = { type: 'SKIP_WAITING' };
6
7 export const updateBannerVariants = tv({
8 base: 'z-50 flex items-start gap-3 rounded-lg border bg-popover p-3 text-sm text-popover-foreground shadow-lg',
9 variants: {
10 position: {
11 inline: 'w-full',
12 'bottom-right': 'fixed bottom-4 right-4 w-[min(22rem,calc(100vw-2rem))]',
13 'bottom-left': 'fixed bottom-4 left-4 w-[min(22rem,calc(100vw-2rem))]',
14 'bottom-center': 'fixed bottom-4 left-1/2 -translate-x-1/2 w-[min(28rem,calc(100vw-2rem))]',
15 'top-center': 'fixed top-4 left-1/2 -translate-x-1/2 w-[min(28rem,calc(100vw-2rem))]'
16 }
17 },
18 defaultVariants: { position: 'bottom-right' }
19 });
20
21 export type UpdateBannerPosition = VariantProps<typeof updateBannerVariants>['position'];
22 export type UpdateSource = 'service-worker' | 'manual';
23</script>
24
25<script lang="ts">
26 import { cn } from '$UTILS$';
27 import { onMount, type Snippet } from 'svelte';
28 import { fly } from 'svelte/transition';
29 import { Button } from '$lib/components/ui/button';
30 import { RefreshCw, Sparkles, X } from '@lucide/svelte';
31
32 let {
33 available = $bindable(false),
34 source = 'service-worker',
35 scope,
36 pollInterval = 0,
37 position = 'bottom-right',
38 title = 'A new version is available',
39 description = 'Reload to get the latest version of the app.',
40 reloadLabel = 'Reload',
41 dismissLabel = 'Later',
42 dismissible = true,
43 autoReloadAfter,
44 reloadTimeout = 3000,
45 class: className,
46 onreload,
47 ondismiss,
48 onupdatefound,
49 icon,
50 children,
51 ...rest
52 }: {
53 /** Whether an update is waiting. Bindable so you can drive it yourself. */
54 available?: boolean;
55 /** `manual` skips all service worker wiring and only uses `available`. */
56 source?: UpdateSource;
57 /** Service worker scope to look up. Defaults to the closest registration. */
58 scope?: string;
59 /** Milliseconds between `registration.update()` checks. 0 disables polling. */
60 pollInterval?: number;
61 position?: UpdateBannerPosition;
62 title?: string;
63 description?: string;
64 reloadLabel?: string;
65 dismissLabel?: string;
66 dismissible?: boolean;
67 /** Seconds to wait before reloading on its own. Omit to always ask first. */
68 autoReloadAfter?: number;
69// … truncated

What it pulls in

Other registry items

  • button

Facts

Registry
more-shadcn-noair
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on more-shadcn-noair more-shadcn.noair.fun Raw registry item This item as JSON

More from more-shadcn-noair

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Audioaudiomore-shadcn-noairComponentsFreeno deps
Audio Waveaudio-wavemore-shadcn-noairComponentsFreeno deps
Autocompleteautocompletemore-shadcn-noairComponentsFreeno deps
Bannerbannermore-shadcn-noairComponentsFreeno deps
Big Calendarbig-calendarmore-shadcn-noairComponentsFreeno deps
Bottom Navigationbottom-navmore-shadcn-noairComponentsFreeno deps
Canvascanvasmore-shadcn-noairComponentsFreeno deps
Chipchipmore-shadcn-noairComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex