-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
74 lines (69 loc) · 1.8 KB
/
page.tsx
File metadata and controls
74 lines (69 loc) · 1.8 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import type { Metadata } from 'next'
import type { Prop } from '@/types/props'
import { PageHeading } from '@/components/page-heading'
import { PropsTable } from '@/components/props-table'
import { TypographyP } from '@/components/ui/typography'
export const metadata: Metadata = {
title: 'ImageSettings',
description:
'Configuration options for ImageSettings in @lglab/react-qr-code, allowing you to embed and position images or logos inside QR codes.',
}
const props: Prop[] = [
{
name: 'src',
type: 'string',
description: 'The URI of the embedded image.',
required: true,
},
{
name: 'width',
type: 'number',
description: 'The width, in pixels, of the image.',
required: true,
},
{
name: 'height',
type: 'number',
description: 'The height, in pixels, of the image.',
required: true,
},
{
name: 'excavate',
type: 'boolean',
description: 'Remove the modules around the embedded image.',
possibleValues: ['true', 'false'],
defaultValue: 'false',
},
{
name: 'x',
type: 'number',
description:
'The horizontal offset of the embedded image, starting from the top left corner.',
defaultValue: 'center',
},
{
name: 'y',
type: 'number',
description:
'The vertical offset of the embedded image, starting from the top left corner.',
defaultValue: 'center',
},
{
name: 'opacity',
type: 'number',
description: 'The opacity of the embedded image in the range',
defaultValue: '1',
possibleValues: ['0-1'],
},
]
export default function Page() {
return (
<>
<PageHeading heading='ImageSettings' />
<TypographyP>
These are the properties you can use to customize the image in the QR Code.
</TypographyP>
<PropsTable props={props} />
</>
)
}