Newer
Older
import { Content, Link, Feature } from "@onegeo/gatsby-theme-onegeo"
return (
<Content>
<div className="prose">
<Link to="/doc">Retour</Link>
<h1>Feature</h1>
<h2>Props</h2>
<div className="mockup-code">
<pre>
<code>
{`
title?: string;
content?: string;
image?: string | IGatsbyImageData;
<h2>Example</h2>
</div>
<div className="mt-10">
<h1 className="text-2xl font-semibold p-4">Custom component</h1>
<Feature
title="Action"
content="Action description for the Button"
layout="left"
custom={<div>Custom component</div>}
action={{
}}
/>
</div>
<div className="mt-10">
<h1 className="text-2xl font-semibold p-4">Image</h1>
<Feature
title="Action"
content="Action description for the Button"
layout="right"
image="https://fakeimg.pl/480x480/"
action={{
}}
/>
</div>
<div className="mt-10">
<h1 className="text-2xl font-semibold p-4">Text only</h1>
<Feature
title="Action"
content="Action description for the Button"
action={{
}}
/>
</div>
<div className="mt-10">
<h1 className="text-2xl font-semibold p-4">Map</h1>
<Feature
title="Action"
content="Action description for the Button"
action={{