Streaming Text
EXAMPLES 1
Generating response...
streaming_text(text='Generating response...', active=True)
USAGE
from djust_components.components.streaming_text import StreamingText
component = StreamingText(stream_event='stream_chunk',
text='',
markdown=False,
auto_scroll=True,
cursor=True,
custom_class='',
kwargs)
html = component.render()
PARAMETERS 7
| Name | Type | Default |
|---|---|---|
stream_event |
<class 'str'> |
'stream_chunk' |
text |
<class 'str'> |
'' |
markdown |
<class 'bool'> |
False |
auto_scroll |
<class 'bool'> |
True |
cursor |
<class 'bool'> |
True |
custom_class |
<class 'str'> |
'' |
kwargs |
— |
— |