Skip to main content

UI Components

Component Library

UI primitives live in frontend/src/components/shared/ui/:

ComponentPurpose
ButtonPrimary action buttons with variants
CardContent container with optional header/footer
InputText input with label and error state
BadgeStatus indicators and labels
TabsTab navigation component
AlertInformational/warning/error alerts
SpinnerLoading indicator

Usage

import { Button } from '@/components/shared/ui/Button';
import { Card } from '@/components/shared/ui/Card';
import { Badge } from '@/components/shared/ui/Badge';

<Card>
<Badge variant="success">Protected</Badge>
<Button onClick={handleRun}>Execute Test</Button>
</Card>

Theming

All components respect the active visual theme (Default, Neobrutalism, Hacker Terminal) via CSS variables defined in Tailwind CSS v4 @theme blocks.