Skip to content

Commit 8413681

Browse files
author
Numan
committed
Step 5 -
- (Optional) Go to `configs/componentsOverview.ts` add your Component's meta-data along with component thumbnail (assets/preview/index.tsx). This will show your Component Card in Components tab [`/components`].
1 parent 96f1289 commit 8413681

3 files changed

Lines changed: 81 additions & 0 deletions

File tree

assets/preview/card-hover.svg

Lines changed: 73 additions & 0 deletions
Loading

assets/preview/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import card from '@/assets/preview/card.svg';
33
import buttons from '@/assets/preview/buttons.svg';
44
import motionNumber from '@/assets/preview/motion-number.svg';
55
import clippath from '@/assets/preview/clip-path.svg';
6+
import cardHover from '@/assets/preview/card-hover.svg';
67

78

89
const preview = {
@@ -11,5 +12,6 @@ const preview = {
1112
clippath,
1213
buttons,
1314
card,
15+
cardHover,
1416
};
1517
export default preview;

configs/componentsOverview.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ const componentsOverviewCards = [
3131
name: 'Cards',
3232
imgSrc: preview.card,
3333
},
34+
{
35+
id: 'card-hover',
36+
url: '/components/card-hover',
37+
name: 'Card Hover Comp-tab',
38+
imgSrc: preview.cardHover,
39+
},
3440
];
3541

3642
export default componentsOverviewCards;

0 commit comments

Comments
 (0)