Home / Function/ CopyLoadingStates() — supabase Function Reference

CopyLoadingStates() — supabase Function Reference

Architecture documentation for the CopyLoadingStates() function in copy-loading-states.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/design-system/registry/default/example/copy-loading-states.tsx lines 5–38

export default function CopyLoadingStates() {
  return (
    <div className="flex flex-row gap-16">
      <div className="flex flex-col gap-4">
        <span className="text-xs text-foreground-muted">Bad Example</span>
        <div className="flex flex-col gap-4">
          <Button type="primary" loading>
            Please wait...
          </Button>
          <Button type="primary" loading>
            Loading...
          </Button>
          <Button type="danger" loading>
            Processing...
          </Button>
        </div>
      </div>
      <div className="flex flex-col gap-4">
        <span className="text-xs text-foreground-muted">Good Example</span>
        <div className="flex flex-col gap-4">
          <Button type="primary" loading>
            Creating table...
          </Button>
          <Button type="primary" loading>
            Loading schema...
          </Button>
          <Button type="danger" loading>
            Deleting project...
          </Button>
        </div>
      </div>
    </div>
  )
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free