Notification

npx shadcn@latest add peacenode/minim/notification

Basic usage

import { NotificationIcon } from "@/components/minim-icons/notification-icon"

export function Example() {
  return (
    <div className="flex items-center gap-4">
      <NotificationIcon className="size-8" title="Notification" />
      <NotificationIcon
        variant="selected"
        className="size-8"
        title="Notification selected"
      />
    </div>
  )
}
import Link from "next/link"

import { Button } from "@/components/ui/button"
import { NotificationIcon } from "@/components/minim-icons/notification-icon"

interface IconNavItemProps {
  active: boolean
}

export function IconNavItem({ active }: IconNavItemProps) {
  return (
    <Button
      asChild
      variant={active ? "secondary" : "ghost"}
    >
      <Link
        href="/notification"
        aria-current={active ? "page" : undefined}
      >
        <NotificationIcon
          variant={active ? "selected" : "default"}
          className="size-8"
        />
        <span>Notification</span>
      </Link>
    </Button>
  )
}