@@ -12,54 +12,57 @@ import {
12
12
CardHeaderCounter ,
13
13
CardHeaderBadge ,
14
14
} from '.' ;
15
+ import type { CardProps } from '.' ;
15
16
import { Text } from '~components/Typography' ;
16
17
import { CheckCircleIcon } from '~components/Icons' ;
17
18
18
- export const InternalCardExample = React . forwardRef ( ( _ , ref ) => {
19
- return (
20
- < Card
21
- ref = { ref as never }
22
- backgroundColor = "surface.background.gray.intense"
23
- borderRadius = "medium"
24
- elevation = "lowRaised"
25
- padding = "spacing.7"
26
- width = "300px"
27
- marginRight = "spacing.6"
28
- href = "https://razorpay.com"
29
- >
30
- < CardHeader marginBottom = "spacing.4" paddingBottom = "spacing.4" >
31
- < CardHeaderLeading
32
- prefix = { < CardHeaderIcon icon = { CheckCircleIcon } /> }
33
- subtitle = "Share payment link via an email, SMS, messenger, chatbot etc."
34
- suffix = { < CardHeaderCounter value = { 12 } /> }
35
- title = "Payment Links"
36
- />
37
- < CardHeaderTrailing visual = { < CardHeaderBadge color = "positive" > NEW</ CardHeaderBadge > } />
38
- </ CardHeader >
39
- < CardBody >
40
- < Text position = "relative" zIndex = { 1 } >
41
- Create Razorpay Payments Links and share them with your customers from the Razorpay
42
- Dashboard or using APIs and start accepting payments. Check the advantages, payment
43
- methods, international currency support and more.
44
- </ Text >
45
- </ CardBody >
46
- < CardFooter marginTop = "spacing.4" paddingTop = "spacing.4" >
47
- < CardFooterTrailing
48
- actions = { {
49
- primary : {
50
- accessibilityLabel : undefined ,
51
- icon : undefined ,
52
- iconPosition : undefined ,
53
- isDisabled : false ,
54
- isLoading : false ,
55
- // eslint-disable-next-line @typescript-eslint/no-empty-function
56
- onClick : ( ) => { } ,
57
- text : 'Learn More' ,
58
- type : undefined ,
59
- } ,
60
- } }
61
- />
62
- </ CardFooter >
63
- </ Card >
64
- ) ;
65
- } ) ;
19
+ export const InternalCardExample = React . forwardRef (
20
+ ( { elevation = 'lowRaised' } : Partial < CardProps > , ref ) => {
21
+ return (
22
+ < Card
23
+ ref = { ref as never }
24
+ backgroundColor = "surface.background.gray.intense"
25
+ borderRadius = "medium"
26
+ elevation = { elevation }
27
+ padding = "spacing.7"
28
+ width = "300px"
29
+ marginRight = "spacing.6"
30
+ href = "https://razorpay.com"
31
+ >
32
+ < CardHeader marginBottom = "spacing.4" paddingBottom = "spacing.4" >
33
+ < CardHeaderLeading
34
+ prefix = { < CardHeaderIcon icon = { CheckCircleIcon } /> }
35
+ subtitle = "Share payment link via an email, SMS, messenger, chatbot etc."
36
+ suffix = { < CardHeaderCounter value = { 12 } /> }
37
+ title = "Payment Links"
38
+ />
39
+ < CardHeaderTrailing visual = { < CardHeaderBadge color = "positive" > NEW</ CardHeaderBadge > } />
40
+ </ CardHeader >
41
+ < CardBody >
42
+ < Text position = "relative" zIndex = { 1 } >
43
+ Create Razorpay Payments Links and share them with your customers from the Razorpay
44
+ Dashboard or using APIs and start accepting payments. Check the advantages, payment
45
+ methods, international currency support and more.
46
+ </ Text >
47
+ </ CardBody >
48
+ < CardFooter marginTop = "spacing.4" paddingTop = "spacing.4" >
49
+ < CardFooterTrailing
50
+ actions = { {
51
+ primary : {
52
+ accessibilityLabel : undefined ,
53
+ icon : undefined ,
54
+ iconPosition : undefined ,
55
+ isDisabled : false ,
56
+ isLoading : false ,
57
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
58
+ onClick : ( ) => { } ,
59
+ text : 'Learn More' ,
60
+ type : undefined ,
61
+ } ,
62
+ } }
63
+ />
64
+ </ CardFooter >
65
+ </ Card >
66
+ ) ;
67
+ } ,
68
+ ) ;
0 commit comments