import * as React from "react"; import * as ReactDOM from "react-dom"; import { Catalog, markdown, ReactSpecimen, Config, Page, pageLoader, HtmlSpecimen, TableSpecimen, ColorSpecimen, ColorPaletteSpecimen, CodeSpecimen } from "catalog"; const MyPage = () => markdown` # Hello ${(
Hello
)} ${(
Hello
World
)} ${( foo

}]} columns={["bar", "foo"]} /> )} ${} ${} ${( )} ${} ${{"hello"}} ${{"hello"}} ${( {"var x = 3;"} )} `; ReactDOM.render(, document.body); const config: Config = { title: "Test", theme: { background: "white" }, pages: [ { path: "/", title: "Introduction", styles: ["foo.css"], content: () => hello }, { path: "/wat", title: "Wat", content: () =>

I can also be any Element

}, { path: "/foo", title: "Foo", content: MyPage }, { path: "/bar", title: "Bar", content: pageLoader("./bar.md") }, { title: "Materials", pages: [ { path: "/materials/typeface", title: "Typeface", content: pageLoader(() => import("./test-page")) }, { path: "/materials/typeface2", title: "Typeface2", content: pageLoader(() => import("./test-page-2")) } ] } ], useBrowserHistory: true, basePath: "/doc", responsiveSizes: [ { name: "large", width: 978, height: 1100 }, { name: "medium", width: 640, height: 900 }, { name: "small", width: 471, height: 700 } ] }; ReactDOM.render(, document.body); ReactDOM.render(, document.body);