An opinionated toast component for React.
add how section
emilkowalski962dccb43185
diff --git a/website/src/components/How/How.tsx b/website/src/components/How/How.tsxnew file mode 100644index 0000000..d0d566d--- /dev/null+++ b/website/src/components/How/How.tsx@@ -0,0 +1,20 @@+import React from 'react';++export const How = () => {+ return (+ <div>+ <h2>How is it made?</h2>+ <p>+ You can read about why and how it was built{' '}+ <a+ href="https://emilkowal.ski/ui/building-a-toast-component"+ target="_blank"+ style={{ textDecoration: 'underline' }}+ >+ here+ </a>+ .+ </p>+ </div>+ );+};diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsxindex 65e071c..6052d6a 100644--- a/website/src/pages/index.tsx+++ b/website/src/pages/index.tsx@@ -9,6 +9,7 @@ import { Position } from '@/src/components/Position';import { Usage } from '@/src/components/Usage';import { Other } from '@/src/components/Other/Other';import Head from '../components/Head';+import { How } from '../components/How/How';export default function Home() {const [expand, setExpand] = React.useState(false);@@ -29,6 +30,7 @@ export default function Home() {<Position position={position} setPosition={setPosition} /><ExpandModes expand={expand} setExpand={setExpand} /><Other setCloseButton={setCloseButton} setRichColors={setRichColors} />+ <How /></div></main><Footer />