-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup mdx import, demo with README, storybook
- Loading branch information
1 parent
889c909
commit a8b7d91
Showing
8 changed files
with
511 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import "~/types/mdx.d.ts"; // TODO: load this automatically | ||
import Readme from "../../../README.md"; | ||
export default () => ( | ||
<div> | ||
<h1>Vulcan Next Starter</h1> | ||
<h1>Welcome to Vulcan Next Starter</h1> | ||
<p> | ||
Below, find the readme loaded from an MD file using{" "} | ||
<a href="https://mdxjs.com/">MDXJS</a> | ||
</p> | ||
<Readme /> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// @see https://mdxjs.com/advanced/typescript | ||
declare module "*.mdx" { | ||
let MDXComponent: (props: any) => JSX.Element; | ||
export default MDXComponent; | ||
} | ||
declare module "*.md" { | ||
let MDXComponent: (props: any) => JSX.Element; | ||
export default MDXComponent; | ||
} |
Oops, something went wrong.