Skip to main content

Overview

SuperBox’s component library is built with React 19, TypeScript, and Tailwind CSS, providing a consistent and accessible UI across the application.

Fully Typed

All components are TypeScript-first with full type safety

Accessible

WCAG 2.1 AA compliant with keyboard navigation

Animated

Smooth animations powered by Framer Motion

Responsive

Mobile-first design with all breakpoints covered

Core Components

Header Component

The main navigation header with authentication and user menu.

Server Card Component

Display MCP server information in a card layout.
object
required
Server data object

Auth Modal Component

Modal dialog for user authentication with multiple providers.
1

Import Component

2

Add to Layout

3

Handle Callbacks

The Auth Modal supports email/password, Google OAuth, and GitHub OAuth authentication methods.

Server Detail Component

Comprehensive server information display with tabs and actions.
  • Overview Tab: Description, stats, and quick actions - Tools Tab: List of available MCP tools - Documentation Tab: Markdown-rendered documentation - Reviews Tab: User ratings and reviews - Install Button: One-click installation via CLI - Share Button: Social sharing options - Report Button: Security issue reporting

Tool Card Component

Display individual MCP tool information.

Custom Dropdown Component

Accessible dropdown menu with keyboard navigation.
Dropdown automatically closes on outside click and Escape key press for better UX.

Toast Provider Component

Global toast notification system.

Paywall Modal Component

Premium features upgrade modal with Razorpay integration.

Publish Modal Component

Multi-step wizard for publishing MCP servers.
1

Server Details

Name, description, and category selection
2

Tool Configuration

Define MCP tools and parameters
3

Security Scan

Automated security checks (SonarCloud, Snyk, Bandit, GitGuardian)
4

Review & Publish

Final review before publishing to marketplace

Reviews Section Component

Display and manage user reviews with ratings.

Security Report Component

Report security vulnerabilities in MCP servers.

Page Transition Component

Smooth page transitions with Framer Motion.

Wave Background Component

Animated SVG wave background for hero sections.

Component Patterns

Composition Pattern

Build complex UIs by composing simple components:

Render Props Pattern

Share logic between components:

Custom Hooks

Reusable logic extracted into hooks:

Styling Guidelines

Use Tailwind CSS utility classes for styling. Avoid custom CSS unless absolutely necessary.

Common Patterns

Accessibility Features

All components follow WCAG 2.1 AA standards:
Keyboard Navigation - Full keyboard support with focus management
Screen Readers - Semantic HTML and ARIA attributes
Color Contrast - Minimum 4.5:1 contrast ratio
Focus Indicators - Visible focus states for all interactive elements

Next Steps

Setup Guide

Set up your development environment

Deployment

Deploy to Vercel

API Integration

Connect to backend APIs

Backend Overview

Learn about the backend