@lunit/mdx-code-block
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

How to Use

npm install @lunit/mdx-code-block
import { MDXCodeBlock } from '@lunit/mdx-code-block';

const components = {
  pre: props => <div {...props} />,
  code: MDXCodeBlock,
};

export function App() {
  return (
    <MDXProvider components={components}>
      <Content/>
    </MDXProvider>
  );
}
import { CodeBlock } from '@lunit/mdx-code-block';

function Component(sourceCode: string) {
  return (
    <CodeBlock language="js">{sourceCode}</CodeBlock>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @lunit/mdx-code-block

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.5 kB

Total Files

6

Last publish

Collaborators

  • takhyunkim
  • deminoth
  • jyseo