-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
32 lines (28 loc) · 843 Bytes
/
page.tsx
File metadata and controls
32 lines (28 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { Metadata } from 'next'
import { CodeEditor } from '@/components/code-editor'
import { PageHeading } from '@/components/page-heading'
import { TypographyP } from '@/components/ui/typography'
export const metadata: Metadata = {
title: 'Quick Start',
description:
'Follow this quick start guide to render your first QR code in React using the @lglab/react-qr-code component.',
}
const codeBlock = `
import { ReactQRCode } from '@lglab/react-qr-code'
export const Demo = () => {
return (
<ReactQRCode value='https://reactqrcode.com' />
);
}
`
export default function Page() {
return (
<>
<PageHeading heading='Quick Start' />
<TypographyP>
Once installed, you can generate a QR code with just a few lines of code:
</TypographyP>
<CodeEditor code={codeBlock} />
</>
)
}