Home / Function/ GridItem() — supabase Function Reference

GridItem() — supabase Function Reference

Architecture documentation for the GridItem() function in grid.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/design-system/components/grid.tsx lines 24–57

  ({ children, ...props }, ref) => {
    return (
      <div
        ref={ref}
        {...props}
        className={cn(
          `
            relative
            min-h-32 
            flex gap-4 flex-col items-center p-4
            border-b border-r
            bg-surface-75/50 
            justify-center hover:bg-surface-100
            group
            cursor-pointer
        `,
          props.className
        )}
      >
        <div
          className="
                    absolute
                    w-full h-full box-content
                    transition 
                    group-hover:border 
                    group-hover:border-foreground-muted 
                    group-data-[state=open]:border 
                    group-data-[state=open]:border-foreground-muted 
                "
        ></div>
        {children}
      </div>
    )
  }

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free