-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
68 lines (62 loc) · 1.65 KB
/
page.tsx
File metadata and controls
68 lines (62 loc) · 1.65 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 { TypographyH2, TypographyP } from '@/components/ui/typography'
export const metadata: Metadata = {
title: 'GradientSettings',
description:
'Configuration options for GradientSettings in @lglab/react-qr-code, including gradient type, stops, and rotation for QR code data or backgrounds.',
}
const props: Prop[] = [
{
name: 'type',
type: 'string',
description: 'The type of gradient',
required: true,
possibleValues: ['linear', 'radial'],
},
{
name: 'stops',
type: 'GradientSettingsStop[]',
description: 'The gradient stops',
required: true,
},
{
name: 'rotation',
type: 'number',
description: 'The gradient rotation',
defaultValue: '0',
possibleValues: ['0 - 360'],
},
]
const stopProps: Prop[] = [
{
name: 'offset',
type: 'string',
description:
'The gradient stop offset. It should be a percentage including the % sign e.g. 0%, 50%, 100%',
required: true,
},
{
name: 'color',
type: 'string',
description: 'The gradient stop color',
required: true,
},
]
export default function Page() {
return (
<>
<PageHeading heading='GradientSettings' />
<TypographyP>
These are the properties you can use to customize the gradient for the QR code
data or background
</TypographyP>
<PropsTable props={props} />
<hr />
<TypographyH2>GradientSettingsStop</TypographyH2>
<PropsTable props={stopProps} />
</>
)
}