Skip to content

Spinner ​

Chỉ báo đang tải.

ts
import { Spinner } from "@minap/ui";

Examples ​

Mẫu sống trong Preview; chọn View code khi cần copy.

Usage ​

tsx
import { Spinner } from "@minap/ui";

export function Example() {
  return (
    <>
      <div className="flex flex-wrap items-center gap-4">
        {(["primary", "success", "warning", "destructive", "info"] as const).map((color) => (
          <Spinner key={color} color={color} className="size-6" />
        ))}
      </div>
    </>
  );
}

Props / API ​

Prop / APITypeDefaultNotes
color"primary" | "success" | "warning" | "destructive" | "info""primary"Omit → primary
classNamestring—utility size-*

MINAP UI — Soft Periwinkle light, Mobile-First