File tree 3 files changed +17
-2
lines changed
docs/pages/docs/api-reference
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' ai ' : patch
3
+ ---
4
+
5
+ Deprecate <Tokens />
Original file line number Diff line number Diff line change 9
9
The Tokens component is a React Server Component for streaming in tokens in a React Component.
10
10
You can view a live demo with Next.js [ here] ( https://rsc-llm-on-the-edge.vercel.app )
11
11
12
+ <Callout >
13
+ <strong >
14
+ This API has been deprecated and will be removed in a future release. See
15
+ [ Generative UI] ( /docs/concepts/ai-rsc ) for the recommended approach to
16
+ streaming React UI.
17
+ </strong >
18
+ </Callout >
19
+
12
20
## Props
13
21
14
22
``` typescript
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ type Props = {
8
8
} ;
9
9
10
10
/**
11
- * A React Server Component that recursively renders a stream of tokens.
12
- * Can only be used inside of server components.
11
+ A React Server Component that recursively renders a stream of tokens.
12
+ Can only be used inside of server components.
13
+
14
+ @deprecated Use RSCs / Generative AI instead.
13
15
*/
14
16
export async function Tokens ( props : Props ) {
15
17
const { stream } = props ;
You can’t perform that action at this time.
0 commit comments