1
1
mirror of https://github.com/theoludwig/react-component-form.git synced 2024-07-17 07:30:13 +02:00
react-component-form/example/components/About.tsx

30 lines
819 B
TypeScript
Raw Normal View History

import Translation from "next-translate/Trans"
2022-08-26 20:19:31 +02:00
import { Link } from "./design/Link"
import { TextSpecial } from "./design/TextSpecial"
2022-08-26 20:19:31 +02:00
export const About: React.FC = () => {
return (
<section className="text-center mt-6">
<h1 className="text-4xl">{"<Form />"}</h1>
<h2 className="text-xl dark:text-gray-300 text-gray-600 mt-4">
npm install --save{" "}
2022-08-26 20:19:31 +02:00
<Link
href="https://www.npmjs.com/package/react-component-form"
target="_blank"
rel="noopener noreferrer"
2022-08-26 20:19:31 +02:00
>
react-component-form
</Link>
</h2>
<p className="max-w-lg mt-6 text-base" data-cy="main-description">
2022-08-26 20:19:31 +02:00
<Translation
i18nKey="common:about"
components={[<TextSpecial key="special" />]}
2022-08-26 20:19:31 +02:00
/>
</p>
</section>
)
}