Papier

Tips for MDX (temp)

Learn how to get started with Papier Landing.

Callout

Hello World

Title

Hello World

Title

Hello World

Twoslash Example

Learn more about Twoslash notations.

.('Hello World')
Test
.log
  • log
const player: = { : 'Hello World' }
const player: Player

Installation

To set up the project, follow these steps:

  1. Clone the repository:
git clone https://github.com/your-repo/papier-landing.git
cd papier-landing
  1. Install dependencies:
install
  1. Start the development server:
npm run dev
# or
yarn dev

Markdown

import defaultComponents from 'fumadocs-ui/mdx';
import type { MDXComponents } from 'mdx/types';
import { CodeBlock, Pre } from 'fumadocs-ui/components/codeblock';

export function getMDXComponents(components?: MDXComponents): MDXComponents {
  return {
    ...defaultComponents,
    // HTML `ref` attribute conflicts with `forwardRef`
    pre: ({ ref: _ref, ...props }) => (
      <CodeBlock {...props}>
        <Pre>{props.children}</Pre>
      </CodeBlock>
    ),
    ...components,
  };
}

Markdown Tabs

console.log('A')

Fuma Tabs

Persistent with local storage

Javascript is weird
Rust is fast
Hello World

The application should now be running at http://localhost:3000.

Ts type table

Prop

Type

Images

Image

Steps