BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/delego/decision-pill

Decision Pill

delego/decision-pill
FreeComponent

The signature Delego element: renders a Decision outcome (allow / needs_approval / deny) with its canonical icon, mono label, and color.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/Delego-Dev/registry/main/public/r/decision-pill.json

Source

registry/delego/ui/decision-pill.tsxraw.githubusercontent.com/Delego-Dev/registry/main/public/r/decision-pill.json
1import * as React from "react"
2import { BadgeCheck, Clock, ShieldX } from "lucide-react"
3
4import { cn } from "@/lib/utils"
5import { StatusBadge } from "@/components/ui/status-badge"
6
7// Decision pill — the signature Delego element. A delego Decision has exactly one
8// of three outcomes; this renders it with the canonical icon + mono label + color
9// so an outcome looks identical everywhere it appears. The default label is the
10// protocol's own token (e.g. `needs_approval`); pass children to override.
11type Decision = "allow" | "needs_approval" | "deny"
12
13const DECISION = {
14 allow: { variant: "allow", icon: BadgeCheck, label: "allow" },
15 needs_approval: { variant: "approval", icon: Clock, label: "needs_approval" },
16 deny: { variant: "deny", icon: ShieldX, label: "deny" },
17} as const
18
19function DecisionPill({
20 decision,
21 className,
22 children,
23 ...props
24}: Omit<React.ComponentProps<typeof StatusBadge>, "variant"> & {
25 decision: Decision
26}) {
27 const { variant, icon: Icon, label } = DECISION[decision]
28 return (
29 <StatusBadge
30 variant={variant}
31 data-decision={decision}
32 className={cn(className)}
33 {...props}
34 >
35 <Icon aria-hidden />
36 {children ?? label}
37 </StatusBadge>
38 )
39}
40
41export { DecisionPill, type Decision }

What it pulls in

npm packages

  • lucide-react

Other registry items

  • https://raw.githubusercontent.com/Delego-Dev/registry/main/public/r/status-badge.json

Files it writes

  • registry/delego/ui/decision-pill.tsx

Facts

Registry
delego
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
yesterday

Go to the source

delegohq.com Delego-Dev/registry on GitHub Raw registry item This item as JSON

More from delego

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ButtonbuttondelegoComponentsFree2 deps
FieldfielddelegoComponentsFreeno deps
Signed Receiptsigned-receiptdelegoComponentsFree1 dep
Status Badgestatus-badgedelegoComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex