Vibe's Icon Library
npm install @vibe/iconsThis package includes all of the icons of monday.com's Vibe Design System, available as React components and raw SVGs and with lazy loading support for optimized performance and flexible usage in your projects.
To install, use the following command:
``bash`
npm install @vibe/icons
#### Using React Components
`javascript`
import { Close } from "@vibe/icons";
#### Using Lazy React Components
`javascript`
import { Close } from "@vibe/icons/lazy";
#### Using Raw SVG Files
`javascript`
import { Close as CloseSvg } from "@vibe/icons/raw";
#### Using Meta Information
The meta export provides detailed metadata for each icon, including:
- name: The name of the icon.file
- : The SVG file name.description
- : A description of the icon's purpose or usage.tags
- : Associated tags as a comma-separated string.
This metadata can be used to programmatically work with icons, such as building custom icon pickers or managing icons in your project.
`javascript`
import iconsMetaData from "@vibe/icons/meta";
For TypeScript users, the types export provides type-safe icon names:
`typescript
import type { IconName } from "@vibe/icons/types";
// Type-safe props
interface IconButtonProps {
icon: IconName; // Autocomplete works!
}
``
We are reliant on React and React DOM, we are using them as externals, and we don't package them to the package, so you must have them in your project