Common Overview
Shared utilities, hooks, and components used across all Stoked UI packages.
Introduction
The @stoked-ui/common package provides foundational utilities shared by all Stoked UI packages. It includes hooks for resize handling, a local database abstraction, color utilities, MIME type helpers, and more.
Installation
npm install @stoked-ui/common
# or
pnpm add @stoked-ui/common
Key exports
- useResize — Hook for tracking element resize events
- useResizeWindow — Hook for tracking window resize events
- LocalDb — IndexedDB-backed local database utility
- Colors — Color manipulation and palette utilities
- MimeType — MIME type detection and classification helpers
- GrokLoader — Component loader with progress indication
- Provider — State management provider utilities