### Install SvelteKit Project Source: https://svelte-ai-elements.vercel.app/docs/installation Command to create a new SvelteKit project. Ensure Tailwind CSS is selected during setup. ```bash pnpm dlx sv create my-app cd my-app ``` -------------------------------- ### Install and Initialize shadcn-svelte Source: https://svelte-ai-elements.vercel.app/docs/installation Command to install and initialize shadcn-svelte in a SvelteKit project. Follow the prompts for configuration. ```bash pnpm dlx shadcn-svelte@latest init ``` -------------------------------- ### Install Message Component using jsrepo Source: https://svelte-ai-elements.vercel.app/docs/installation Alternative command to install the 'message' component from Svelte AI Elements using jsrepo. ```bash pnpm dlx jsrepo add @ai/elements/ai-elements/https://svelte-ai-elements.vercel.app/r/message.json ``` -------------------------------- ### Svelte Message Component Usage Example Source: https://svelte-ai-elements.vercel.app/docs/installation Example of how to import and use the Message, MessageAvatar, and MessageContent components in a Svelte component. It demonstrates displaying a conversation with user and assistant messages. ```svelte
{#each messages as { content, from, avatar, name }} {content} {/each}
``` -------------------------------- ### Install Message Component using shadcn-svelte CLI Source: https://svelte-ai-elements.vercel.app/docs/installation Specific command to install the 'message' component from Svelte AI Elements using the shadcn-svelte CLI. ```bash pnpm dlx shadcn-svelte@latest add https://svelte-ai-elements.vercel.app/r/message.json ``` -------------------------------- ### Add Svelte AI Element Component using jsrepo Source: https://svelte-ai-elements.vercel.app/docs/installation Alternative command to add a Svelte AI Element component using jsrepo. Replace [COMPONENT] with the desired component name. ```bash pnpm dlx jsrepo add @ai/elements/ai-elements/https://svelte-ai-elements.vercel.app/r/[COMPONENT].json ``` -------------------------------- ### Add Svelte AI Element Component using shadcn-svelte CLI Source: https://svelte-ai-elements.vercel.app/docs/installation Command to add a specific Svelte AI Element component using the shadcn-svelte CLI. Replace [COMPONENT] with the desired component name. ```bash pnpm dlx shadcn-svelte@latest add https://svelte-ai-elements.vercel.app/r/[COMPONENT].json ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.