export const title = "Install Untitled UI Icons" export const description = "Untitled UI Icons are a clean, consistent, and neutral icon library crafted for modern UI design. These icons are available as React components with instant npm access." export const metaDescription = "Learn how to install, import, and style Untitled UI Icons. Untitled UI Icons are a clean, consistent, and neutral icon library crafted for modern UI design." export const titleParts = "Untitled UI — Icons" ## Installation To get started, install the Untitled UI Icons package: ```bash npm install @untitledui/icons ``` ```bash yarn add @untitledui/icons ``` ```bash bun add @untitledui/icons ``` ## Using Untitled UI Icons You can use Untitled UI Icons in two ways: by importing from the default import or by importing individual icon files. Here's a quick guide for both: ### Main module import (recommended) For modern build tools that support tree-shaking (e.g. Next.js, Vite), you can import icons directly from the main package: ```tsx import { Home01, Settings01, User01, Bell01 } from "@untitledui/icons"; ``` This method ensures that only the icons you use are included in the final bundle, keeping your bundle size small and optimized. ### Individual module import If you're using a build tool that doesn't fully support tree-shaking, you can import icons directly from individual files just as easily: ```tsx import Home01 from "@untitledui/icons/Home01"; import Settings01 from "@untitledui/icons/Settings01"; import User01 from "@untitledui/icons/User01"; import Bell01 from "@untitledui/icons/Bell01"; ``` This ensures that only the icons you explicitly import are included in your bundle. ## Styling Untitled UI Icons All Untitled UI Icons support standard SVG and React props out of the box: ```tsx import { Home01 } from "@untitledui/icons";