AI product
Streaming text
an answer arriving · all at once under reduced motion · screen readers get it once
function StreamingDemo() { const [run, setRun] = React.useState(0); return ( <View className="w-full gap-3"> <StreamingText key={run} text="Your Q2 VAT return is ready. You owe £3,412, due on 7 August. I've drafted it from 46 invoices and 112 expenses." /> <Button size="sm" variant="outline" className="self-start" onPress={() => setRun((r) => r + 1)}> <Text>Replay</Text> </Button> </View> );}API
<StreamingText text onDone? />Get it
Already in every copy of the native kit:
import { StreamingText, useStreamingText } from '@/components/kit/streaming-text';Details
- Exports
StreamingText,useStreamingText- Installs with
- @halftone-native/lib-reduced-motion, @halftone-native/text
- Also searched as
- typing, stream, typewriter
- Registry JSON
- /r/native/streaming-text.json
function StreamingDemo() { const [run, setRun] = React.useState(0); return ( <div className="flex max-w-xl flex-col items-start gap-3"> <StreamingText key={run} className="leading-7" text="Your three overdue invoices total £4,410. Lumen Labs is the largest at £2,310 and is 12 days late; I can draft a reminder." /> <Button size="sm" variant="outline" onClick={() => setRun((r) => r + 1)}> Replay </Button> </div> );}API
<StreamingText text onDone? />Get it
Already in every copy of the web kit:
import { StreamingText, useStreamingText } from '@/components/kit/streaming-text';Details
- Exports
StreamingText,useStreamingText- Installs with
- @halftone-web/hook-use-reduced-motion
- Also searched as
- typing, stream, typewriter
- Registry JSON
- /r/web/streaming-text.json
Agents: the whole registry is at /llms.txt.