The gadget-ui package requires React 18+, Tailwind CSS 3.4+, and Node 18+. It ships with ESM and CJS builds plus TypeScript definitions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aurelienbobenrieth/gadget/llms.txt
Use this file to discover all available pages before exploring further.
Install with package managers
- pnpm
- npm
- yarn
Peer dependencies
The package declares these peer dependencies:| Package | Version | Purpose |
|---|---|---|
react | >=18.0.0 | Component rendering |
react-dom | >=18.0.0 | DOM bindings |
tailwindcss | >=3.4.0 | Design token integration and utility classes |
Tailwind CSS 4.x is supported. The preset uses CSS custom properties that work with both v3 and v4.
Direct dependencies
The package bundles these dependencies (you do not need to install them separately):| Package | Version | Purpose |
|---|---|---|
@fontsource-variable/inter | ^5.2.8 | Variable Inter font |
@fontsource/inconsolata | ^5.2.8 | Inconsolata monospace font (400, 700 weights) |
class-variance-authority | ^0.7.1 | Component variant management |
clsx | ^2.1.1 | Conditional class name utility |
shiki | ^3.22.0 | Syntax highlighting in CodeBlock component |
tailwind-merge | ^3.5.0 | Merges Tailwind classes in cn() utility |
Package exports
The package exposes three entry points:package.json exports
Import paths
Verify installation
Check that the package is available:Next steps
After installation, configure Tailwind and import global styles:Import global styles
Add to your main CSS file:This imports:
styles/globals.css
- Inter Variable font
- Inconsolata monospace font (400, 700)
- CSS custom properties for colors, shadows, radius
- Dark and light theme definitions
TypeScript support
The package includes TypeScript definitions (dist/index.d.ts). Type exports are available:
Next steps
Setup
Configure Tailwind and import global styles
Theming
Learn about design tokens and theme switching
