Skip to content

The Open Standard for Generative UI

Export TagSize and TagVariant types in Tag component for improved type accessibility and v bump (#214)

Ankit Dasca62043e6b0d
diff --git a/js/packages/react-ui/package.json b/js/packages/react-ui/package.json
index b570910d5..306815203 100644
--- a/js/packages/react-ui/package.json
+++ b/js/packages/react-ui/package.json
@@ -2,7 +2,7 @@
"type": "module",
"name": "@crayonai/react-ui",
"license": "MIT",
- "version": "0.8.39",
+ "version": "0.8.40",
"description": "Component library for Generative UI SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/js/packages/react-ui/src/components/Tag/Tag.tsx b/js/packages/react-ui/src/components/Tag/Tag.tsx
index 74c6859d9..882a07d53 100644
--- a/js/packages/react-ui/src/components/Tag/Tag.tsx
+++ b/js/packages/react-ui/src/components/Tag/Tag.tsx
@@ -1,8 +1,8 @@
import clsx from "clsx";
import { CSSProperties, forwardRef, ReactNode } from "react";
-type TagSize = "sm" | "md" | "lg";
-type TagVariant = "neutral" | "info" | "success" | "warning" | "danger";
+export type TagSize = "sm" | "md" | "lg";
+export type TagVariant = "neutral" | "info" | "success" | "warning" | "danger";
const sizeMap: Record<TagSize, string> = {
sm: "crayon-tag-sm",