File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
docs/pages/docs/api-reference Expand file tree Collapse file tree 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 99The Tokens component is a React Server Component for streaming in tokens in a React Component.
1010You can view a live demo with Next.js [ here] ( https://rsc-llm-on-the-edge.vercel.app )
1111
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+
1220## Props
1321
1422``` typescript
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ type Props = {
88} ;
99
1010/**
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.
1315 */
1416export async function Tokens ( props : Props ) {
1517 const { stream } = props ;
You can’t perform that action at this time.
0 commit comments