shadimage
preskok
examplebadge-preskok-demosource: ok · hit

Badge Preskok Demo

npx shadcn add "https://ui-three-mu.vercel.app/r/badge-preskok-demo.json"
free

No selection tags yet — empty means no evidence, not lack of support.

Dependencies

Bundle weight · light

Registry dependencies

https://ui-three-mu.vercel.app/r/badge.json

Files1 · source cached 10/8/2026, 3:36:30 PM

registry/preskok/examples/badge-preskok-demo.tsx
"use client"

import { CheckCircleIcon, ClockIcon, ShieldAlertIcon } from "lucide-react"

import { Badge, badgeStyles } from "@/components/ui/preskok-ui/badge"

function toTitleCase(text: string) {
  return text.charAt(0).toUpperCase() + text.slice(1)
}

export default function BadgePreskokDemo() {
  const intents = Object.keys(badgeStyles.variants.intent) as Array<
    keyof typeof badgeStyles.variants.intent
  >

  return (
    <div className="grid gap-3">
      <div className="flex flex-wrap items-center gap-2">
        {intents.map((intent) => (
          <Badge key={intent} intent={intent}>
            {toTitleCase(intent)}
          </Badge>
        ))}
      </div>
      <div className="flex flex-wrap items-center gap-2">
        <Badge intent="success">
          <CheckCircleIcon data-slot="icon" />
          Approved
        </Badge>
        <Badge intent="warning" isCircle={false}>
          <ClockIcon data-slot="icon" />
          Pending review
        </Badge>
        <Badge intent="danger" isCircle={false}>
          <ShieldAlertIcon data-slot="icon" />
          Needs owner
        </Badge>
      </div>
    </div>
  )
}

More from preskok

Browse all components in this library →