@coral-ai/bundleicons
v2.1.0
Published
Pre-bundled icons for Coral: Fluent regular/filled pairs plus curated product icons (Microsoft Excel, etc.).
Readme
@coral-ai/bundleicons
Pre-bundled Fluent icon pairs (regular + filled) for use across Coral components and consumer apps.
Install
npm install @coral-ai/bundleicons @fluentui/[email protected]@fluentui/react-icons is a peer dependency and must be installed at the exact version listed above.
Usage
Two import paths are supported.
Barrel (simplest)
import { Add, Settings, Person } from "@coral-ai/bundleicons";
<Button icon={<Add />} />Subpath (tree-shaken — recommended for production)
Each icon is also available at its own subpath. With this form your bundler ships only the icons you import:
import { Add } from "@coral-ai/bundleicons/Add";
import { Settings } from "@coral-ai/bundleicons/Settings";
<Button icon={<Add />} />Subpath imports require tsconfig.json "moduleResolution": "Bundler" (TypeScript 5.0+) or "NodeNext". The classic "Node10" / "node" resolution does not read the package's exports field and will fail with "cannot find module".
See coral-ai for the full project.
