Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

549 B
Raw Blame
import { forwardRef, HTMLAttributes, ReactNode } from 'react'
import { Card } from 'ui'

export interface ResourceListProps extends HTMLAttributes<HTMLDivElement> {
  children?: ReactNode
}

export const ResourceList = forwardRef<HTMLDivElement, ResourceListProps>(
  ({ children, className, ...props }, ref) => {
    return (
      <Card
        ref={ref}
        className={['overflow-hidden', className].filter(Boolean).join(' ')}
        {...props}
      >
        {children}
      </Card>
    )
  }
)

ResourceList.displayName = 'ResourceList'