UNPKG

@aristobyte-ui/spinner

Version:

Flexible, highly customizable React Spinner component for AristoByteUI. Supports multiple variants, sizes, and animation types, designed for seamless integration with modern React projects and monorepos.

31 lines (30 loc) 624 B
"use client"; // components/Spinner.tsx import clsx from "clsx"; import { jsx } from "react/jsx-runtime"; var Spinner = ({ type = "regular", variant = "default", size = "md", className = "" }) => { return /* @__PURE__ */ jsx( "div", { className: clsx( "spinner", `spinner-${type}`, // type: regular | duo | gradient | pulse | pulse-duo `spinner-${size}`, // size: xsm | sm | md | lg | xlg `spinner-${variant}`, // variant: default | primary | ... className ) } ); }; export { Spinner }; //# sourceMappingURL=index.mjs.map