Documentation Index
Fetch the complete documentation index at: https://mintlify.com/omavashia2005/ai-tool-elements/llms.txt
Use this file to discover all available pages before exploring further.
ai-tool-elements is a React component library that requires React 18 or higher as a peer dependency and Node.js 18 or higher at build time. TypeScript is optional but fully supported — types ship with the package, so no additional configuration is needed to get autocomplete and type-checking working immediately.
Requirements
Before installing, confirm your project meets the following prerequisites:- React 18 or higher — declared as a peer dependency; bring your own React installation
- Node.js 18 or higher — required by the package’s
enginesfield - A build tool that supports ESM — Vite, Next.js, Webpack 5, or any bundler with ESM support works out of the box
Install the Package
Addai-tool-elements to your project dependencies using your preferred package manager.
Import Styles
The library ships a pre-built Tailwind CSS stylesheet at theai-tool-elements/styles.css export path. You must import this file once in your application’s entry point or root layout. Skipping this step means card components will render without any visual styling.
sideEffects in the package’s package.json, so bundlers will not accidentally tree-shake it away even when using aggressive dead-code elimination.
Module Formats
ai-tool-elements ships a dual ESM + CJS build. The exports field in package.json routes bundlers to the correct format automatically:
import(ESM) →./dist/index.jsrequire(CJS) →./dist/index.cjs./styles.css→./dist/index.css
TypeScript
Type declarations are bundled with the package at./dist/index.d.ts. No separate @types/ai-tool-elements package exists or is needed. After installation, the following public types are available for import directly from "ai-tool-elements":
moduleResolution: "bundler" or "node16") and TypeScript 5.x are both supported.
Next Steps
Quickstart
Follow the five-minute guide to render your first catalog and custom tool cards.