import React, { ReactElement } from "react"; import { Link } from "gatsby"; import { Content } from "@onegeo/gatsby-theme-onegeo"; import { ButtonCard } from "@onegeo/gatsby-theme-onegeo"; 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;