ComponentsNavigation
Furin Bell
A notification button drawn as a glass wind chime whose paper strip carries the unread count and which swings when something arrives.
"use client";
import { useState } from "react";
import { Button } from "@/components/miyuki-ui/button";
import { FurinBell } from "@/components/miyuki-ui/furin-bell";
import { Switch } from "@/components/miyuki-ui/switch";
export default function FurinBellDemo() {
const [count, setCount] = useState(3);
const [sound, setSound] = useState(false);
return (
<div className="flex flex-col items-center gap-14">
<FurinBell size={56} count={count} sound={sound} onPress={() => setCount(0)} />
<div className="flex flex-col items-center gap-4">
<Button variant="secondary" onPress={() => setCount((c) => c + 1)}>
Send a notification
</Button>
<Switch size="sm" isSelected={sound} onChange={setSound}>
Chime
</Switch>
</div>
</div>
);
}Install
npx shadcn@latest add @miyuki-ui/furin-bellThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
FurinBell
Prop
Type
Depth Gauge
A slim gauge at the edge of the page that reads how deep you have scrolled in metres, darkening from pale surface water to the deep; click or drag it to go to a depth.
Gate Transition
A wrapper that switches between views through a ticket gate: two flaps swing shut across the middle, a lamp lights, the content changes behind them and the flaps swing open, all in 600ms.