Profile
npx shadcn@latest add peacenode/minim/profileBasic usage
import { ProfileIcon } from "@/components/minim-icons/profile-icon"
export function Example() {
return (
<div className="flex items-center gap-4">
<ProfileIcon className="size-8" title="Profile" />
<ProfileIcon
variant="selected"
className="size-8"
title="Profile selected"
/>
</div>
)
}Navigation usage
import Link from "next/link"
import { Button } from "@/components/ui/button"
import { ProfileIcon } from "@/components/minim-icons/profile-icon"
interface IconNavItemProps {
active: boolean
}
export function IconNavItem({ active }: IconNavItemProps) {
return (
<Button
asChild
variant={active ? "secondary" : "ghost"}
>
<Link
href="/profile"
aria-current={active ? "page" : undefined}
>
<ProfileIcon
variant={active ? "selected" : "default"}
className="size-8"
/>
<span>Profile</span>
</Link>
</Button>
)
}