-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
68 lines (63 loc) · 1.7 KB
/
page.tsx
File metadata and controls
68 lines (63 loc) · 1.7 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
import type { Metadata } from 'next'
import type { Prop } from '@/types/props'
import { PageHeading } from '@/components/page-heading'
import { PropsTable } from '@/components/props-table'
import { Bold, TypographyP } from '@/components/ui/typography'
export const metadata: Metadata = {
title: 'DataModulesSettings',
description:
'Configuration options for DataModulesSettings in @lglab/react-qr-code, used to control QR code data module color, shape, and random sizing.',
}
const props: Prop[] = [
{
name: 'color',
type: 'string',
description: 'The color of the modules',
defaultValue: '#000000',
},
{
name: 'style',
type: 'DataModulesStyle',
description: 'The style of the modules',
defaultValue: 'square',
possibleValues: [
'square',
'square-sm',
'pinched-square',
'rounded',
'leaf',
'vertical-line',
'horizontal-line',
'circle',
'diamond',
'star',
'heart',
'hashtag',
],
},
{
name: 'randomSize',
type: 'boolean',
description: (
<>
If true, the modules will have random sizes. Can only be used with styles{' '}
<Bold>square</Bold>, <Bold>circle</Bold>, <Bold>diamond</Bold>, <Bold>star</Bold>,{' '}
<Bold>heart</Bold> and <Bold>hashtag</Bold>.
</>
),
defaultValue: 'false',
possibleValues: ['true', 'false'],
},
]
export default function Page() {
return (
<>
<PageHeading heading='DataModulesSettings' />
<TypographyP>
These are the properties you can use to customize the QR Code data modules (the
small squares that make up the QR Code).
</TypographyP>
<PropsTable props={props} />
</>
)
}