We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7285d5 commit 5cb35d6Copy full SHA for 5cb35d6
.storybook-s2/docs/StyleMacro.jsx
@@ -205,7 +205,7 @@ function MyComponent({variant}) {
205
display: 'flex',
206
alignItems: 'center',
207
columnGap: 8
208
-};
+} as const;
209
210
const styles = style({
211
...horizontalStack,
@@ -218,7 +218,7 @@ export function horizontalStack(gap: number) {
218
219
220
columnGap: gap
221
- };
+ } as const;
222
}`)}</Pre>
223
<P>Then, import your macro and use it in a component.</P>
224
<Pre>{highlight(`// component.tsx
0 commit comments