@@ -8,14 +8,10 @@ import { ResourceBadge, PanelLabel } from "@eqtylab/equality";
88
99## Overview
1010
11- ---
12-
1311The ` ResourceBadge ` component is a specialized badge wrapper that provides predefined configurations for displaying different resource types as defined by [ integrity-py] ( https://github.com/eqtylab/integrity-py ) . It automatically applies appropriate icons, colors, and labels.
1412
1513## Usage
1614
17- ---
18-
1915Import the component :
2016
2117``` tsx
@@ -30,8 +26,6 @@ Basic usage requires only a `type` prop:
3026
3127## Variants
3228
33- ---
34-
3529<div className = " grid grid-cols-[auto_auto_auto] gap-6" >
3630 <div className = " flex flex-col items-start space-y-3" >
3731 <PanelLabel label = " With Icons (default)" />
@@ -53,6 +47,8 @@ Basic usage requires only a `type` prop:
5347 <ResourceBadge type = " system-prompt" />
5448 <ResourceBadge type = " reasoning" />
5549 <ResourceBadge type = " token" />
50+ <ResourceBadge type = " certificate" />
51+ <ResourceBadge type = " credential" />
5652 <ResourceBadge type = " tool" />
5753 <ResourceBadge type = " unknown" />
5854 </div >
@@ -76,6 +72,8 @@ Basic usage requires only a `type` prop:
7672 <ResourceBadge type = " system-prompt" display = " text-only" />
7773 <ResourceBadge type = " reasoning" display = " text-only" />
7874 <ResourceBadge type = " token" display = " text-only" />
75+ <ResourceBadge type = " certificate" display = " text-only" />
76+ <ResourceBadge type = " credential" display = " text-only" />
7977 <ResourceBadge type = " tool" display = " text-only" />
8078 <ResourceBadge type = " unknown" display = " text-only" />
8179 </div >
@@ -99,15 +97,15 @@ Basic usage requires only a `type` prop:
9997 <ResourceBadge type = " system-prompt" display = " icon-only" />
10098 <ResourceBadge type = " reasoning" display = " icon-only" />
10199 <ResourceBadge type = " token" display = " icon-only" />
100+ <ResourceBadge type = " certificate" display = " icon-only" />
101+ <ResourceBadge type = " credential" display = " icon-only" />
102102 <ResourceBadge type = " tool" display = " icon-only" />
103103 <ResourceBadge type = " unknown" display = " icon-only" />
104104 </div >
105105</div >
106106
107107## Display Options
108108
109- ---
110-
111109### With Icon and Label (Default)
112110
113111The default display shows both icon and label:
@@ -134,9 +132,7 @@ Show only the text by setting `display` to `"text-only"`:
134132
135133## Props
136134
137- ---
138-
139- | Name | Description | Type | Default | Required |
140- | --------- | --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
141- | ` type ` | The resource type that determines the badge variant, icon, and label. | ` "agent" ` , ` "benchmark" ` , ` "benchmark-result" ` , ` "binary" ` , ` "code" ` , ` "compute" ` , ` "config" ` , ` "database" ` , ` "dataset" ` , ` "document" ` , ` "guardrail" ` , ` "media" ` , ` "model" ` , ` "prompt" ` , ` "reasoning" ` , ` "skill" ` , ` "system-prompt" ` , ` "token" ` , ` "tool" ` , ` "unknown" ` | | ✅ |
142- | ` display ` | Controls what elements are displayed: icon, text, or both. | ` "both" ` , ` "text-only" ` , ` "icon-only" ` | ` "both" ` | ❌ |
135+ | Name | Description | Type | Default | Required |
136+ | --------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
137+ | ` type ` | The resource type that determines the badge variant, icon, and label. | ` "agent" ` , ` "benchmark" ` , ` "benchmark-result" ` , ` "binary" ` , ` "certificate" ` , ` "code" ` , ` "compute" ` , ` "config" ` , ` "credential" ` , ` "database" ` , ` "dataset" ` , ` "document" ` , ` "guardrail" ` , ` "media" ` , ` "model" ` , ` "prompt" ` , ` "reasoning" ` , ` "skill" ` , ` "system-prompt" ` , ` "token" ` , ` "tool" ` , ` "unknown" ` | | ✅ |
138+ | ` display ` | Controls what elements are displayed: icon, text, or both. | ` "both" ` , ` "text-only" ` , ` "icon-only" ` | ` "both" ` | ❌ |
0 commit comments