9
Switch language to العربية

Icons

PreviousNext

Comprehensive icon library.

logo
twitter
gitHub
radix
aria
npm
yarn
pnpm
react
tailwind
google
apple
paypal
spinner
dollarSign
users
import { Icons } from "./icons"

export function IconsPreview() {
  const iconEntries = Object.entries(Icons).filter(
    ([_, value]) => typeof value === "function" || typeof value === "object"
  )

  return (
    <div className="grid grid-cols-4 gap-4 sm:grid-cols-6 md:grid-cols-8">
      {iconEntries.slice(0, 16).map(([name, Icon]) => (
        <div
          key={name}
          className="flex flex-col items-center justify-center gap-2 rounded-md border p-4"
        >
          {typeof Icon === "function" ? (
            <Icon className="h-6 w-6" />
          ) : null}
          <span className="text-xs text-muted-foreground truncate max-w-full">
            {name}
          </span>
        </div>
      ))}
    </div>
  )
}

Installation

pnpm dlx codebase add icons

Usage

import { Icons } from "@/components/atom/icons"
<Icons.spinner className="h-4 w-4 animate-spin" />