File size: 956 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import ActionCard from '../index';

ActionCard.displayName = 'ActionCard';

function ActionCardExample( props ) {
	return props.exampleCode;
}

ActionCardExample.displayName = 'ActionCard';

ActionCardExample.defaultProps = {
	exampleCode: (
		<div>
			<ActionCard
				headerText="This is a header text"
				mainText="This is a description of the action. It gives a bit more detail and explains what we are inviting the user to do."
				buttonText="Call to action!"
				buttonIcon="external"
				buttonPrimary
				buttonHref="https://wordpress.com"
				buttonTarget="_blank"
				buttonOnClick={ null }
			/>
			<ActionCard
				headerText="This one has a disabled button."
				mainText="You can also disable the CTA button if necessary."
				buttonText="Disabled button"
				buttonIcon="external"
				buttonPrimary
				buttonHref="https://wordpress.com"
				buttonOnClick={ null }
				buttonDisabled
			/>
		</div>
	),
};

export default ActionCardExample;