File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
packages/storybook/src/react-components/pre-heading Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { LuxPreHeading } from '@lux-design-system/components-react' ;
2
2
import tokens from '@lux-design-system/design-tokens/dist/index.json' ;
3
3
import type { Meta , StoryObj } from '@storybook/react' ;
4
+ import { createVisualRegressionStory , VisualRegressionWrapper } from '../../utils' ;
4
5
5
6
type Story = StoryObj < typeof meta > ;
6
7
7
8
const meta = {
8
- title : 'React Components/Pre-heading ' ,
9
+ title : 'React Components/PreHeading ' ,
9
10
id : 'react-components-pre-heading' ,
10
11
component : LuxPreHeading ,
11
12
subcomponents : { } ,
@@ -48,3 +49,16 @@ export const Playground: Story = {
48
49
} ,
49
50
tags : [ '!autodocs' ] ,
50
51
} ;
52
+
53
+ export const Visual = createVisualRegressionStory ( ( ) => (
54
+ < >
55
+ < h4 className = "utrecht-heading-3" > Light</ h4 >
56
+ < VisualRegressionWrapper className = "lux-theme--logius-light" >
57
+ < LuxPreHeading > LuxPreHeading: { preHeadingText } </ LuxPreHeading >
58
+ </ VisualRegressionWrapper >
59
+ < h4 className = "utrecht-heading-3" > Dark</ h4 >
60
+ < VisualRegressionWrapper className = "lux-theme--logius-dark" >
61
+ < LuxPreHeading > LuxPreHeading: { preHeadingText } </ LuxPreHeading >
62
+ </ VisualRegressionWrapper >
63
+ </ >
64
+ ) ) ;
You can’t perform that action at this time.
0 commit comments