Skip to content

Commit 227d1ca

Browse files
feat(chain-of-thought): change ChainOfThoughtStep label and description types from string to ReactNode (#215)
* feat(ChainOfThoughtStep): change ChainOfThoughtStep label and description types from string to ReactNode * Create flat-chairs-argue.md --------- Co-authored-by: Hayden Bleasel <[email protected]>
1 parent ef3c335 commit 227d1ca

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/flat-chairs-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ai-elements": patch
3+
---
4+
5+
change ChainOfThoughtStep label and description types from string to ReactNode

packages/elements/src/chain-of-thought.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
DotIcon,
1515
type LucideIcon,
1616
} from "lucide-react";
17-
import type { ComponentProps } from "react";
17+
import type { ComponentProps, ReactNode } from "react";
1818
import { createContext, memo, useContext, useMemo } from "react";
1919

2020
type ChainOfThoughtContextValue = {
@@ -110,8 +110,8 @@ export const ChainOfThoughtHeader = memo(
110110

111111
export type ChainOfThoughtStepProps = ComponentProps<"div"> & {
112112
icon?: LucideIcon;
113-
label: string;
114-
description?: string;
113+
label: ReactNode;
114+
description?: ReactNode;
115115
status?: "complete" | "active" | "pending";
116116
};
117117

0 commit comments

Comments
 (0)