Core UI component library for the Gitcoin Design System, built with React, Tailwind CSS, and Storybook.
This package contains all shared UI components, hooks, and utilities used across Gitcoin's applications. It provides a consistent design language and component API to ensure cohesive user experiences.
- 🎨 60+ Production-ready components
- 📚 Comprehensive Storybook documentation
- 🌗 Dark mode support
- ♿️ Accessible components
- 🎯 TypeScript support
- 🔄 Form handling utilities
- 🎭 Testing utilities
- 📱 Responsive design
.
├── 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 components
pnpm add @gitcoin/ui
import { Button, Input } from '@gitcoin/ui'
import '@gitcoin/ui/styles.css'
function MyComponent() {
return (
<div>
<Input placeholder="Enter text..." />
<Button>Click me</Button>
</div>
)
}
# Start Storybook
pnpm dev
# Build package
pnpm build
# Run tests
pnpm test
# Generate new component
pnpm generate-component ComponentName
- Primitives (Button, Input, Select, etc.)
- Layout components
- Navigation components
- Form components
- Data display components
- Feedback components
- Application management
- Project evaluation
- Pool management
- Program administration
- Retrofunding interfaces
useCredentialVerification
useIndexedDB
usePersistForm
useToast
- Date formatting
- Icon utilities
- IndexedDB helpers
- SSR utilities
- Create a new branch
- Make your changes
- Add or update tests
- Add or update Storybook stories
- Submit a PR
AGPL-3.0 - see the LICENSE file for details.