Home / Function/ Demo() — supabase Function Reference

Demo() — supabase Function Reference

Architecture documentation for the Demo() function in color-usage-surface-studio-frame.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/design-system/registry/default/example/color-usage-surface-studio-frame.tsx lines 6–51

export default function Demo() {
  return (
    <div className="bg-studio w-full h-[320px] flex flex-col items-center border border-dashed rounded-md overflow-hidden">
      <div className="bg-surface-200 border h-12 w-full rounded-t-md flex justify-center gap-3 items-center shadow">
        <div className="flex gap-3">
          <ExampleLabel>grid header</ExampleLabel>
          <ClassLabel>bg-surface-200</ClassLabel>
          <ClassLabel>border</ClassLabel>
        </div>
      </div>
      <div className="bg-200 border-b border-r border-l border-secondary h-14 w-full flex justify-center gap-3 items-center shadow">
        <div className="flex gap-3">
          <ExampleLabel>content row</ExampleLabel>
          <ClassLabel>bg-200</ClassLabel>
          <ClassLabel>border-secondary</ClassLabel>
        </div>
      </div>
      <div className="bg-200 border-b border-r border-l border-secondary h-14 w-full flex justify-center gap-3 items-center shadow">
        <div className="flex gap-3">
          <ExampleLabel>content row</ExampleLabel>
          <ClassLabel>bg-200</ClassLabel>
          <ClassLabel>border-secondary</ClassLabel>
        </div>
      </div>
      <div className="bg-200 border-b border-r border-l border-secondary h-14 w-full flex justify-center gap-3 items-center shadow">
        <div className="flex gap-3">
          <ExampleLabel>content row</ExampleLabel>
          <ClassLabel>bg-200</ClassLabel>
          <ClassLabel>border-secondary</ClassLabel>
        </div>
      </div>
      <div className="bg-200 border-b border-r border-l border-secondary h-14 w-full flex justify-center gap-3 items-center shadow">
        <div className="flex gap-3">
          <ExampleLabel>content row</ExampleLabel>
          <ClassLabel>bg-200</ClassLabel>
          <ClassLabel>border-secondary</ClassLabel>
        </div>
      </div>
      <div className="flex bg-alternative w-full justify-center items-center h-full gap-3">
        <ExampleLabel>empty frame space</ExampleLabel>
        <ClassLabel>bg-alternative</ClassLabel>
        <ClassLabel>border-stronger</ClassLabel>
      </div>
    </div>
  )
}

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free