Skip to content

Commit

Permalink
update card footer
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyadeorukhkar committed Sep 10, 2024
1 parent 3a0eb7d commit 283a0a3
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions packages/blade/src/components/Card/Card.figma.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import React from 'react';
import figma from '@figma/code-connect';
import {
Card,
CardBody,
CardFooter,
CardFooterTrailing,
CardHeader,
CardHeaderCounter,
CardHeaderIcon,
CardHeaderLeading,
CardHeaderTrailing,
} from '../Card';
import figma from '@figma/code-connect';

/**
* -- This file was auto-generated by `figma connect create` --
Expand Down Expand Up @@ -39,12 +41,8 @@ figma.connect(
cardHeaderTrailing: figma.nestedProps('_Card/Trailing Item', {
trailing: figma.instance('trailing'),
}),
cardHeaderAvatar: figma.nestedProps('Avatar', {
size: figma.enum('size', {
Small: 'small',
Medium: 'medium',
Large: 'large',
}),
cardFooter: figma.nestedProps('_Card/Footer', {
showDivider: figma.boolean('showDivider'),
}),
cardHeaderCounter: figma.nestedProps('Counter', {
color: figma.enum('color', {
Expand Down Expand Up @@ -73,6 +71,7 @@ figma.connect(
cardHeaderLeading,
cardHeaderCounter,
cardHeaderTrailing,
cardFooter,
}) => (
<Card elevation={elevation}>
<CardHeader>
Expand All @@ -83,15 +82,31 @@ figma.connect(
suffix={
<CardHeaderCounter
color={cardHeaderCounter.color}
count={cardHeaderCounter.count}
value={cardHeaderCounter.count}
emphasis={cardHeaderCounter.emphasis}
size={cardHeaderCounter.size}
/>
}
/>
<CardHeaderTrailing visual={cardHeaderTrailing.trailing} />
</CardHeader>
<CardBody>{/* Add your content here */}</CardBody>
<CardBody>{/* Add card body content here */}</CardBody>
<CardFooter showDivider={cardFooter.showDivider}>
<CardFooterTrailing
actions={{
primary: {
/* Add primary action here */
// text:"Hello"
// onClick: () => {}
},
secondary: {
/* Add secondary action here */
// text:"Hello"
// onClick: () => {}
},
}}
/>
</CardFooter>
</Card>
),
},
Expand Down

0 comments on commit 283a0a3

Please sign in to comment.