Loader

The Loader component provides a spinning animation to indicate loading states in your AI applications. It includes both a customizable wrapper component and the underlying icon for flexible usage.

Loader

Installation

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

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

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

Props

Loader

NameTypeDefault
size
number 16
class
string
...restProps
HTMLAttributes<HTMLDivElement>

LoaderIcon

NameTypeDefault
size
number 16