StreamTextProps
Defined in: stream-text.tsx:14
StreamText props.
Properties
Section titled “Properties”children?
Section titled “children?”
optionalchildren:ReactNode
Defined in: stream-text.tsx:30
Children to render after text
className?
Section titled “className?”
optionalclassName:string
Defined in: stream-text.tsx:26
Custom className
cursor?
Section titled “cursor?”
optionalcursor:string
Defined in: stream-text.tsx:22
Cursor character
cursorBlinkInterval?
Section titled “cursorBlinkInterval?”
optionalcursorBlinkInterval:number
Defined in: stream-text.tsx:24
Cursor blink interval in ms
isStreaming?
Section titled “isStreaming?”
optionalisStreaming:boolean
Defined in: stream-text.tsx:18
Whether streaming is active
renderText()?
Section titled “renderText()?”
optionalrenderText: (text) =>ReactNode
Defined in: stream-text.tsx:28
Custom render function
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ReactNode
showCursor?
Section titled “showCursor?”
optionalshowCursor:boolean
Defined in: stream-text.tsx:20
Show cursor while streaming
text:
string
Defined in: stream-text.tsx:16
Text to display