Skip to content

Commit fc9a2cb

Browse files
Add NHS.UK frontend viewports
1 parent b97355e commit fc9a2cb

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

‎.storybook/preview.tsx‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,58 @@ const preview: Preview = {
4646
],
4747
},
4848
},
49+
viewport: {
50+
options: {
51+
watch: {
52+
name: 'Watch',
53+
styles: {
54+
width: '224px',
55+
height: '184px',
56+
},
57+
type: 'other',
58+
},
59+
mobile: {
60+
name: 'Mobile',
61+
styles: {
62+
width: '320px',
63+
height: '568px',
64+
},
65+
type: 'mobile',
66+
},
67+
tablet: {
68+
name: 'Tablet',
69+
styles: {
70+
width: '641px',
71+
height: '768px',
72+
},
73+
type: 'tablet',
74+
},
75+
desktop: {
76+
name: 'Desktop',
77+
styles: {
78+
width: '769px',
79+
height: '1024px',
80+
},
81+
type: 'desktop',
82+
},
83+
desktopL: {
84+
name: 'Large desktop',
85+
styles: {
86+
width: '990px',
87+
height: '1024px',
88+
},
89+
type: 'desktop',
90+
},
91+
desktopXL: {
92+
name: 'Extra large desktop',
93+
styles: {
94+
width: '1281px',
95+
height: '1024px',
96+
},
97+
type: 'desktop',
98+
},
99+
},
100+
},
49101
},
50102
tags: ['autodocs'],
51103
};

0 commit comments

Comments
 (0)