Processing payment...
$100.00
Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/spinner
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { Spinner } from "@/components/ui/pxl/spinner"<Spinner />Use the size-* utility class to change the size of the spinner.
Button
Section titled “Button”Add a spinner to a button to indicate a loading state. Place the <Spinner /> before the label with data-icon="inline-start" for a start position, or after the label with data-icon="inline-end" for an end position.
Add a spinner to a badge to indicate a loading state. Place the <Spinner /> before the label with data-icon="inline-start" for a start position, or after the label with data-icon="inline-end" for an end position.