1.0.1 ⢠Published 7 months ago
@nick-w3/ui v1.0.1
@nick-w3/ui
Core UI component library, built with React, Tailwind CSS, and Storybook.
Overview
This package contains all shared UI components, hooks, and utilities. It provides a consistent design language and component API to ensure cohesive user experiences.
Features
- šØ 60+ Production-ready components
- š Comprehensive Storybook documentation
- š Dark mode support
- āæļø Accessible components
- šÆ TypeScript support
- š Form handling utilities
- š Testing utilities
- š± Responsive design
Structure
.
āāā src/
ā āāā components/ # High-level components
ā āāā features/ # Feature-specific components
ā ā āāā application/ # Application components
ā ā āāā checker/ # Checker components
ā ā āāā pool/ # Pool components
ā ā āāā program/ # Program components
ā ā āāā project/ # Project components
ā ā āāā retrofunding/ # Retrofunding components
ā āāā hooks/ # Shared hooks
ā āāā lib/ # Utilities and helpers
ā āāā primitives/ # Base components
ā āāā theme/ # Theme configuration
ā āāā types/ # TypeScript types
ā āāā ui-shadcn/ # Shadcn UI componentsInstallation
pnpm add @nick-w3/uiUsage
import { Button, Input } from '@nick-w3/ui'
import '@nick-w3/ui/styles.css'
function MyComponent() {
return (
<div>
<Input placeholder="Enter text..." />
<Button>Click me</Button>
</div>
)
}Development
# Start Storybook
pnpm dev
# Build package
pnpm build
# Run tests
pnpm test
# Generate new component
pnpm generate-component ComponentNameAvailable Exports
Components
- Primitives (Button, Input, Select, etc.)
- Layout components
- Navigation components
- Form components
- Data display components
- Feedback components
Features
- Application management
- Project evaluation
- Pool management
- Program administration
- Retrofunding interfaces
Hooks
useCredentialVerificationuseIndexedDBusePersistFormuseToast
Utilities
- Date formatting
- Icon utilities
- IndexedDB helpers
- SSR utilities
Documentation
Contributing
- Create a new branch
- Make your changes
- Add or update tests
- Add or update Storybook stories
- Submit a PR
License
AGPL-3.0 - see the LICENSE file for details.