Newer
Older
import React, { ReactElement } from "react";
import { Link } from "gatsby";
import { Content } from "@onegeo/gatsby-theme-onegeo";
import { ButtonCard } from "@onegeo/gatsby-theme-onegeo";
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
function buttonCard(): ReactElement {
return (
<Content>
<div className="prose">
<Link to="/doc/core">Retour</Link>
<h1>ButtonCard</h1>
<h2>Props</h2>
<div className="mockup-code">
<pre>
<code>
{`interface ButtonCardProps {
to?: string;
className?: string;
anime?: boolean;
side?: boolean;
icon?: string;
title?: string;
subtitle?: string;
}`}
</code>
</pre>
</div>
<h2>Example</h2>
</div>
<div className="flex gap-6 m-4">
<ButtonCard
title="Action"
subtitle="Action description for the Button"
icon="todo"
/>
<ButtonCard
title="Action"
subtitle="Action without animation for the Button"
icon="todo"
anime={false}
/>
<ButtonCard
title="Action"
subtitle="Action whith icon on top for the Button"
icon="todo"
side={false}
/>
</div>
</Content>
);
}
export default buttonCard;