Installation

Install Package

Install UI States using your preferred package manager:

bash
# npm
npm install @promise-inc/ui-states
# yarn
yarn add @promise-inc/ui-states
# pnpm
pnpm add @promise-inc/ui-states

Peer Dependencies

UI States requires React 18 or higher:

typescript
"peerDependencies": {
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
}
If you're using Tailwind CSS (recommended), follow the Tailwind Setup guide after installation to ensure skeleton animations work correctly.

TypeScript

UI States is written in TypeScript and includes full type definitions. No additional @types packages are needed.