{title && (
-
- {title}
+
+
+ {title}
+
+ {badge && }
)}
{text && (
diff --git a/www/packages/docs-ui/src/components/CardList/index.tsx b/www/packages/docs-ui/src/components/CardList/index.tsx
index 0af679435a..cf34d027d4 100644
--- a/www/packages/docs-ui/src/components/CardList/index.tsx
+++ b/www/packages/docs-ui/src/components/CardList/index.tsx
@@ -5,9 +5,10 @@ import clsx from "clsx"
type CardListProps = {
items: CardProps[]
itemsPerRow?: number
+ className?: string
}
-export const CardList = ({ items, itemsPerRow }: CardListProps) => {
+export const CardList = ({ items, itemsPerRow, className }: CardListProps) => {
if (!itemsPerRow) {
// if length of items is even, set to `2`, else set to `3`
itemsPerRow = items.length === 1 ? 0 : items.length % 2 === 0 ? 2 : 3
@@ -18,7 +19,8 @@ export const CardList = ({ items, itemsPerRow }: CardListProps) => {
"grid gap-x-docs_1 auto-rows-fr gap-y-docs_1",
itemsPerRow === 1 && "grid-cols-1",
itemsPerRow === 2 && "md:grid-cols-2 grid-cols-1",
- itemsPerRow === 3 && "lg:grid-cols-3 md:grid-col-2 grid-cols-1"
+ itemsPerRow === 3 && "lg:grid-cols-3 md:grid-col-2 grid-cols-1",
+ className
)}
>
{items.map((item, key) => (