Skip to content

Commit 5cb35d6

Browse files
authored
docs: update examples to fix type error (#8405)
1 parent c7285d5 commit 5cb35d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.storybook-s2/docs/StyleMacro.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function MyComponent({variant}) {
205205
display: 'flex',
206206
alignItems: 'center',
207207
columnGap: 8
208-
};
208+
} as const;
209209
210210
const styles = style({
211211
...horizontalStack,
@@ -218,7 +218,7 @@ export function horizontalStack(gap: number) {
218218
display: 'flex',
219219
alignItems: 'center',
220220
columnGap: gap
221-
};
221+
} as const;
222222
}`)}</Pre>
223223
<P>Then, import your macro and use it in a component.</P>
224224
<Pre>{highlight(`// component.tsx

0 commit comments

Comments
 (0)