Caprice LogoCaprice UI

Spinner

An indicator that can be used to show a loading state.

Installation

npx shadcn@latest add @caprice/spinner

Usage

import { Spinner } from "@/components/caprice-ui/spinner"
<Spinner />

Customization

You can replace the default spinner icon with any other icon by passing an icon to the render prop of the Spinner component.

<Spinner render={<LoaderIcon />} />