New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gitcoin/ui

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitcoin/ui

Core UI component library for the Gitcoin Design System, built with React, Tailwind CSS, and Storybook.

  • 0.0.0-beta.21
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-76.83%
Maintainers
0
Weekly downloads
 
Created
Source

@gitcoin/ui

Core UI component library for the Gitcoin Design System, built with React, Tailwind CSS, and Storybook.

Overview

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.

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 components

Installation

pnpm add @gitcoin/ui

Usage

import { Button, Input } from '@gitcoin/ui'
import '@gitcoin/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 ComponentName

Available 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

  • useCredentialVerification
  • useIndexedDB
  • usePersistForm
  • useToast

Utilities

  • Date formatting
  • Icon utilities
  • IndexedDB helpers
  • SSR utilities

Documentation

  • Storybook
  • Colors
  • Typography
  • Icons

Contributing

  1. Create a new branch
  2. Make your changes
  3. Add or update tests
  4. Add or update Storybook stories
  5. Submit a PR

License

AGPL-3.0 - see the LICENSE file for details.

FAQs

Package last updated on 17 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc