You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
3
+
Composable, headless UI components and utilities built for flexibility and great developer experience. Currently supports React, with more frameworks coming soon.
4
4
5
5
## Features
6
6
7
-
- 🚀 Framework agnostic design (React support available now, more coming soon!)
8
-
- 🎨 Zero-styling approach - full control over your UI design
9
-
- 🔧 Highly customizable hooks and components
10
-
- 📦 Tree-shakeable modules
11
-
- 🌐 Multi-framework support (coming soon)
7
+
- Headless components - bring your own styles
8
+
- Composable API design
9
+
- Tree-shakeable ESM modules
10
+
- TypeScript-first with full type safety
11
+
- Built on top of [@zayne-labs/toolkit](https://github.com/zayne-labs/toolkit)
12
+
13
+
## Packages
14
+
15
+
### @zayne-labs/ui-react
16
+
17
+
React implementation of the UI library. More framework adapters coming in the future.
12
18
13
19
## Components
14
20
15
21
### UI Components
16
22
17
-
@zayne-labs/ui provides a set of headless UI components and hooks:
23
+
Headless UI components for common interface patterns:
18
24
19
-
-**Form** - Flexible form handling with field subscriptions and validation, convenience wrapper around react-hook-form
20
-
-**DropZone** - File upload zone with drag-and-drop support
21
25
-**Card** - Composable card layouts
22
-
-**Carousel** - Customizable slideshow for cycling through elements
23
-
-**DragScroll** - Add drag-to-scroll behavior to any container
26
+
-**Carousel** - Customizable slideshow component
27
+
-**DragScroll** - Add drag-to-scroll behavior to containers
28
+
-**DropZone** - File upload with drag-and-drop support
29
+
-**Form** - Form handling with validation (wrapper around react-hook-form)
24
30
25
-
### Utility Components
31
+
### Common Components
26
32
27
-
@zayne-labs/ui provides several utility components to handle common UI patterns:
33
+
Utility components for declarative UI patterns:
28
34
29
-
-**Switch** - Conditional rendering with pattern matching
30
-
-**Show** - Simplified conditional rendering
31
-
-**For** - Iterative rendering with built-in empty states
35
+
-**Await** - Handle async states declaratively
36
+
-**ClientGate** - Client-side only rendering guard
32
37
-**ErrorBoundary** - Graceful error handling
33
-
-**Await** - Handle async states elegantly
34
-
-**Teleport** - Teleport content to a different part of the DOM via react portals
35
-
-**Slot** - Component composition with named slots
38
+
-**For** - List rendering with empty states
39
+
-**Presence** - Animation presence detection
40
+
-**Show** - Conditional rendering
41
+
-**Slot** - Component composition with slots
36
42
-**SuspenseWithBoundary** - Combined Suspense and ErrorBoundary
43
+
-**Switch** - Pattern matching for conditional rendering
0 commit comments