mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
20 lines
511 B
TypeScript
20 lines
511 B
TypeScript
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" {...props}>
|
|
<div className={className}>{children}</div>
|
|
</Card>
|
|
)
|
|
}
|
|
)
|
|
|
|
ResourceList.displayName = 'ResourceList'
|