Skip to main content

Card

This is the <Card /> component.


Plese Note that this is parent componet of most of the cards in candy.com. Plese check compositions and storybook in candy app.
sold

Basic Usage

import Card from '@candy/kitkat/product-card'

export const MyComponent = () => {
return (
<Card>
<Button appearance="secondary">View Details</Button>
</Card>
)
}

Component API Card Skeleton

NameTypeDefaultDescription
alignContentAlignContentTypes-align content (matadata)
appearance'square' / 'unset''square' types of skeletons
assetToShowcircular / rectangular / text / thumbnail / sort-types of skeletons
assetUrlstring / string[]-assets to show in card
assetContentReactNode-usually used for metadata section in cards
cardAlertcircular / rectangular / text / thumbnail / sort-types of skeletons
childrenReactNode-child components
countdownCountdownTimerProps-used for drop timer
dataTestIdstring-test id
gapContentstring-gap / spacing
hrefboolean-href url
isDisabledstring-Disable Card actions
isMyListingboolean-Card Alert Banner
isSaleEndedboolean-Card Alert Banner
isSelectedboolean-Card Alert Banner
isSoldboolean-Card Alert Banner
isSoldOutboolean-Card Alert Banner
justifyContentAlignContentTypes-types of skeletons
selectCardboolean-used for challanges
styleCSSProperties-additional styles