Componentfeedback1.07 KB gzipZero dependencies
Security Score
Security score with animated arc gauge and per-check pass/fail list.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add security-scoreOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { SecurityScore } from "@/components/ui/security-score"; <SecurityScore />Source code
security-score.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxsecurity-score.tsx86 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface SecurityCheck { id: string; label: string; passed: boolean; hint?: string;} export interface SecurityScoreProps extends React.HTMLAttributes<HTMLDivElement> { checks: SecurityCheck[];} /** Security health score: circular progress gauge + checklist breakdown. */export function SecurityScore({ checks = [], className, ...props }: SecurityScoreProps) {Props
| Prop | Type | Description |
|---|---|---|
| checks | SecurityCheck[] | Configures checks. (Default: []) |