libraries.ts — ui Source File
Architecture documentation for libraries.ts, a typescript file in the ui codebase.
Entity Profile
Relationship Graph
Source Code
export const iconLibraries = {
lucide: {
name: "lucide",
title: "Lucide",
packages: ["lucide-react"],
import: "import { ICON } from 'lucide-react'",
usage: "<ICON />",
export: "lucide-react",
},
tabler: {
name: "tabler",
title: "Tabler Icons",
packages: ["@tabler/icons-react"],
import: "import { ICON } from '@tabler/icons-react'",
usage: "<ICON />",
export: "@tabler/icons-react",
},
hugeicons: {
name: "hugeicons",
title: "HugeIcons",
packages: ["@hugeicons/react", "@hugeicons/core-free-icons"],
import:
"import { HugeiconsIcon } from '@hugeicons/react'\nimport { ICON } from '@hugeicons/core-free-icons';",
usage: "<HugeiconsIcon icon={ICON} strokeWidth={2} />",
export: "@hugeicons/core-free-icons",
},
phosphor: {
name: "phosphor",
title: "Phosphor Icons",
packages: ["@phosphor-icons/react"],
import: "import { ICON } from '@phosphor-icons/react'",
usage: "<ICON strokeWidth={2} />",
export: "@phosphor-icons/react",
},
remixicon: {
name: "remixicon",
title: "Remix Icon",
packages: ["@remixicon/react"],
import: "import { ICON } from '@remixicon/react'",
usage: "<ICON />",
export: "@remixicon/react",
},
} as const
export type IconLibraries = typeof iconLibraries
export type IconLibrary = IconLibraries[keyof IconLibraries]
export type IconLibraryName = keyof IconLibraries
Source
Frequently Asked Questions
What does libraries.ts do?
libraries.ts is a source file in the ui codebase, written in typescript.
Where is libraries.ts in the architecture?
libraries.ts is located at packages/shadcn/src/icons/libraries.ts (directory: packages/shadcn/src/icons).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free