Ruixen Pro is now live.50+ premium components, templates, blocks, and lifetime updates.

Command Palette

Search for a command to run...

Docs
Notifications Filter

Notifications Filter

Spring pill bar with layoutId sliding indicator and staggered item transitions.

Installation

Props

PropTypeDefaultDescription
itemsFilterItem[]DEFAULT_ITEMSArray of notification items
categoriesstring[]DEFAULT_CATEGORIESCategory labels for pills
soundbooleantrueEnable audio tick on switch

FilterItem Interface

interface FilterItem {
  id: string;
  title: string;
  body: string;
  time: string;
  category: string;
}

Features

  • Spring Pill Indicator: Active category pill has a sliding background that spring-animates via layoutId
  • Staggered Transitions: Items exit and enter with staggered spring animations on filter change
  • Customizable Categories: Pass any category labels as strings
  • Hover Brightening: Item text brightens from dim to hi on hover
  • Glass Morphism: Backdrop blur with light/dark CSS custom properties
  • Audio Feedback: Soft tick on category switch

Usage

import { NotificationsFilter } from "@/components/ruixen/notifications-filter";
 
export default function Example() {
  return <NotificationsFilter />;
}