Response

The Response component renders a Markdown response from a large language model. It uses Streamdown under the hood to render the markdown.

Installation

pnpm dlx shadcn-svelte@latest add https://svelte-ai-elements.vercel.app/r/response.json

If you prefer using jsrepo, please install via the command below:

pnpm dlx jsrepo add @ai/elements/ai-elements/response

Props

Response

NameTypeDefault
class
string
content
string
shikiTheme
string
baseTheme
string 'shadcn'
...restProps
StreamdownProps