A collection of multi-framework UI utilities and unstyled components. Currently focused on React implementation, with plans to support other frameworks like Vue, Svelte, and Solid in the future.
- 🚀 Framework agnostic design (React support available now, more coming soon!)
- 🎨 Base styles (not UI styles, that's up to you) with Tailwind CSS
- 🔧 Highly customizable
- 📦 Tree-shakeable
- 🌐 Multi-framework support (coming soon)
# Using pnpm (recommended)
pnpm add @zayne-labs/ui-react
# Using npm
npm install @zayne-labs/ui-react
# Using yarn
yarn add @zayne-labs/ui-react
import { Switch } from '@zayne-labs/ui-react/common'
function App() {
const status = 'loading'
return (
<Switch condition={status}>
<Switch.Match when="loading">
<div>Loading your content...</div>
</Switch.Match>
<Switch.Match when="error">
<div>Oops! Something went wrong</div>
</Switch.Match>
<Switch.Default>
<div>Content loaded successfully!</div>
</Switch.Default>
</Switch>
)
}
Visit our documentation site for detailed usage instructions, examples, and API references. [Coming soon]
This project uses pnpm as the package manager. To get started with development:
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run development build
pnpm build:dev
# Run tests
pnpm build:test
# Lint code
pnpm lint:eslint
# Format code
pnpm lint:format
ui/
├── packages/
│ └── ui-react/ # React UI components (More frameworks coming soon!)
├── dev/ # Development utilities
├── .changeset/ # Changesets for versioning
└── package.json # Root package.json
We welcome contributions! Please see our contributing guidelines for details.
MIT © [Zayne Labs]