Skip to content
roguelite labsAnthony Spezzano ↗
Prompt/Reasoning

Reasoning

Collapsible reasoning block with animated expand/collapse. Shows streaming dots while thinking.

Use and inspectUse this as a presentational interface around your own submit, stream, or state handlers. Reset preview only remounts the local example; it does not send a request or connect to a model.Next: inspect the source and wire its callback to a bounded backend action.
ReasoningCollapsible reasoning block with animated expand/collapse. Shows streaming dots while thinking.
npm install framer-motion
This component requires framer-motion.
PropTypeDefaultDescription
content*stringReasoning text to display
isStreamingbooleanfalseShows animated dots in header when true
defaultOpenbooleanfalseWhether expanded on mount