Minimal demo app demonstrating the performance-focused Preact UI toolkit.
# Install dependencies
npm install
# Start dev server
npm run dev
# Build for production
npm run build- Badge: All variants (default, secondary, destructive, outline)
- Button: All variants and sizes, loading/disabled states
- Input: Controlled inputs, different sizes, validation states
- Card: Layout container with flexible padding
- Dialog: Native
<dialog>element with compound API - Toast: Global notifications via event API
- Bundle size: ~1.2KB JS + 4KB CSS for all components
- Performance: Zero runtime overhead, direct prop forwarding
- Platform-native: Uses HTML5
<dialog>, form validation, etc. - Tree-shakeable: Import only what you use
import {
Button,
Card,
Dialog,
Input,
Badge,
Accordion,
TabList,
Tab,
TabPanel,
} from '../src';
// Pure prop forwarding - no abstractions
<Input type="email" required value={email} onInput={handleInput} />
// CSS-driven variants and sizes
<Button variant="outline" size="lg">Click Me</Button>
// Platform-native dialog
<Dialog>
<Dialog.Trigger><Button>Open</Button></Dialog.Trigger>
<Dialog.Content>Modal content</Dialog.Content>
</Dialog>