summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/cards-list.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/layout/cards-list.tsx')
-rw-r--r--src/components/organisms/layout/cards-list.tsx36
1 files changed, 14 insertions, 22 deletions
diff --git a/src/components/organisms/layout/cards-list.tsx b/src/components/organisms/layout/cards-list.tsx
index 0168bb2..1feddd0 100644
--- a/src/components/organisms/layout/cards-list.tsx
+++ b/src/components/organisms/layout/cards-list.tsx
@@ -10,32 +10,24 @@ export type CardsListItem = Omit<
CardProps,
'className' | 'coverFit' | 'titleLevel'
> & {
- id: string;
-};
-
-export type CardsListProps = {
- /**
- * Set additional classnames to the list wrapper.
- */
- className?: string;
- /**
- * The cover fit.
- */
- coverFit?: CardProps['coverFit'];
/**
- * The cards data.
+ * The card id.
*/
- items: CardsListItem[];
- /**
- * The list kind. Either ordered or unordered.
- */
- kind?: ListProps['kind'];
- /**
- * The title level (hn).
- */
- titleLevel: CardProps['titleLevel'];
+ id: string;
};
+export type CardsListProps = Pick<CardProps, 'coverFit' | 'titleLevel'> &
+ Pick<ListProps, 'kind'> & {
+ /**
+ * Set additional classnames to the list wrapper.
+ */
+ className?: string;
+ /**
+ * The cards data.
+ */
+ items: CardsListItem[];
+ };
+
/**
* CardsList component
*