Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(ui): add container utility and loading spinner component

Naiyuan Qing44fef5207183
diff --git a/packages/ui/src/components/ui/loading.tsx b/packages/ui/src/components/ui/loading.tsx
new file mode 100644
index 0000000000..6577fa970b
--- /dev/null
+++ b/packages/ui/src/components/ui/loading.tsx
@@ -0,0 +1,13 @@
+import { cn } from "@multica/ui/lib/utils"
+
+function Loading({ className, ...props }: React.ComponentProps<"span">) {
+ return (
+ <span className={cn("spinner text-muted-foreground", className)} {...props}>
+ {Array.from({ length: 9 }, (_, i) => (
+ <span key={i} className="spinner-cube" />
+ ))}
+ </span>
+ )
+}
+
+export { Loading }
diff --git a/packages/ui/src/styles/globals.css b/packages/ui/src/styles/globals.css
index cd74a06b43..f5adb57b40 100644
--- a/packages/ui/src/styles/globals.css
+++ b/packages/ui/src/styles/globals.css
@@ -154,6 +154,10 @@
-webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 32px), transparent 100%);
}
+@utility container {
+ @apply w-full max-w-4xl mx-auto;
+}
+
@layer base {
* {
@apply border-border outline-ring/50;