mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 13:49:09 +03:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
19 lines
510 B
TypeScript
19 lines
510 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'
|