mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
docs: resource reference page (#2357)
This commit is contained in:
committed by
GitHub
parent
7ff8671c69
commit
c140af64f9
22
docs/components/resource-grid.tsx
Normal file
22
docs/components/resource-grid.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { ResourceCard } from "./resource-card";
|
||||
|
||||
interface ResourceGridProps {
|
||||
resources: {
|
||||
title: string;
|
||||
description: string;
|
||||
href: string;
|
||||
tags?: string[];
|
||||
}[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function ResourceGrid({ resources, className }: ResourceGridProps) {
|
||||
return (
|
||||
<div className={cn("grid gap-4 sm:grid-cols-2 lg:grid-cols-3", className)}>
|
||||
{resources.map((resource) => (
|
||||
<ResourceCard key={resource.href} {...resource} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user