Newer
Older
import React, { ReactElement } from "react";
import { Link } from "gatsby";
import { Content } from "@onegeo/gatsby-theme-onegeo";
import { Button } 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
function button(): ReactElement {
return (
<Content>
<div className="prose">
<Link to="/doc/core">Retour</Link>
<h1>Button</h1>
<h2>Props</h2>
<div className="mockup-code">
<pre>
<code>
{`interface Props {
children?: React.ReactNode;
title?: string;
to?: string;
className?: string;
}`}
</code>
</pre>
</div>
<h2>Example</h2>
</div>
<div className="flex gap-6 m-4">
<Button title="A Button..." />
<Button title="A Primary Button..." className="btn-primary btn-lg" />
<Button
title="A Secondary Button..."
className="btn-secondary btn-xl"
/>
<Button title="A Accent Button..." className="btn-accent btn-sm" />
<Button className="btn-ghost btn-xs">A Ghost Button</Button>
</div>
<div className="prose">
<h2>More example</h2>
<a href="https://daisyui.com/components/button/">Daisy UI</a>
</div>
</Content>
);
}
export default button;