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