Measured entry

tripled-native-notification-bell-shadcnui

badgeminimal-flatmotion on file

A client-side React notification button with an unread badge, a short ring animation, reduced-motion handling, size options, custom icon support, and click and ring callbacks. It ships as a shadcn registry component and uses Framer Motion, Lucide React, Tailwind utility classes, theme tokens, and the shadcn cn helper.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-native-notification-bell-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-notification-bell-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-notification-bell-shadcnui at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for tripled-native-notification-bell-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal67.5 KB (132.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1m 29s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/@uitripled/react-shadcn/src/components/native/native-notification-bell-shadcnui.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A focused, accessible trigger with useful callbacks and sensible reduced-motion behavior. It builds and mounts in the prepared harness, but it needs a shadcn-style setup because the bare project cannot resolve its cn utility. Best for teams already using that stack; otherwise the animation dependency and setup work are hard to justify for a small badge.

Use it if

  • You need a compact notification trigger that can show a capped unread count.
  • Your interface already uses shadcn theme tokens, Tailwind utilities, and the cn helper.
  • You want the bell to animate when notifications appear while respecting reduced-motion preferences.
  • You need click and ring callbacks or want to substitute a custom icon.

Skip it if

  • You want a dependency-light badge and do not already ship Framer Motion.
  • Your design system does not use Tailwind or shadcn-compatible color tokens.
  • You need a full notification menu, popover, read state, or data-fetching behavior.
  • You need direct control over when the ring animation replays.

Install

Installation record for tripled-native-notification-bell-shadcnui
Declared dependenciesframer-motion, react
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React, Framer Motion, and Lucide React; configure Tailwind; define the border, card, muted, ring, destructive, and destructive-foreground theme tokens; and provide a cn class-merging utility at the imported alias or change that import to your local helper. Ensure the file runs as a client component where that distinction applies.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the badge pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.