Installation
Install Entangle UI
npm install entangle-ui@alphaPeer Dependencies
Entangle UI requires the following peer dependencies:
npm install react react-dom @base-ui/react @floating-ui/react| Package | Version |
|---|---|
react | >=19.1.0 |
react-dom | >=19.1.0 |
@base-ui/react | ^1.1.0 |
@floating-ui/react | ^0.27.17 |
Deep Imports
Color palettes are available via a dedicated export for better tree-shaking:
import { MATERIAL_PALETTE, TAILWIND_PALETTE } from 'entangle-ui/palettes';Available palettes: MATERIAL_PALETTE, TAILWIND_PALETTE, PASTEL_PALETTE, EARTH_PALETTE, NEON_PALETTE, MONOCHROME_PALETTE, SKIN_TONES_PALETTE, VINTAGE_PALETTE, PROFESSIONAL_PALETTES.
TypeScript
All components export their prop types. Utility types are also available:
import type { Tokens, ThemeVars, Prettify, DeepPartial, LiteralUnion,} from 'entangle-ui';Utilities
import { cx, cn } from 'entangle-ui';
// cx — join class names, filtering out falsy values<div className={cx('base', isActive && 'active', className)} />;Next Steps
- Quick Start — build your first component
- Theming — customize the theme