-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
72 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
packages/blade/src/components/Card/InternalCardExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Hidden example. It is reused in motion stories | ||
import React from 'react'; | ||
import { | ||
CardBody, | ||
Card, | ||
CardFooter, | ||
CardFooterTrailing, | ||
CardHeader, | ||
CardHeaderLeading, | ||
CardHeaderTrailing, | ||
CardHeaderIcon, | ||
CardHeaderCounter, | ||
CardHeaderBadge, | ||
} from '.'; | ||
import { Text } from '~components/Typography'; | ||
import { CheckCircleIcon } from '~components/Icons'; | ||
|
||
// Hidden example. It is reused in motion stories | ||
//how avoid this example to be shown in storybook | ||
export const InternalCardExample = React.forwardRef((_, ref) => { | ||
return ( | ||
<Card | ||
ref={ref as never} | ||
backgroundColor="surface.background.gray.intense" | ||
borderRadius="medium" | ||
elevation="lowRaised" | ||
padding="spacing.7" | ||
width="300px" | ||
marginRight="spacing.6" | ||
href="https://razorpay.com" | ||
> | ||
<CardHeader marginBottom="spacing.4" paddingBottom="spacing.4"> | ||
<CardHeaderLeading | ||
prefix={<CardHeaderIcon icon={CheckCircleIcon} />} | ||
subtitle="Share payment link via an email, SMS, messenger, chatbot etc." | ||
suffix={<CardHeaderCounter value={12} />} | ||
title="Payment Links" | ||
/> | ||
<CardHeaderTrailing visual={<CardHeaderBadge color="positive">NEW</CardHeaderBadge>} /> | ||
</CardHeader> | ||
<CardBody> | ||
<Text position="relative" zIndex={1}> | ||
Create Razorpay Payments Links and share them with your customers from the Razorpay | ||
Dashboard or using APIs and start accepting payments. Check the advantages, payment | ||
methods, international currency support and more. | ||
</Text> | ||
</CardBody> | ||
<CardFooter marginTop="spacing.4" paddingTop="spacing.4"> | ||
<CardFooterTrailing | ||
actions={{ | ||
primary: { | ||
accessibilityLabel: undefined, | ||
icon: undefined, | ||
iconPosition: undefined, | ||
isDisabled: false, | ||
isLoading: false, | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
onClick: () => {}, | ||
text: 'Learn More', | ||
type: undefined, | ||
}, | ||
}} | ||
/> | ||
</CardFooter> | ||
</Card> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters