You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/stories/introduction.mdx
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
import { Canvas, Meta, Story } from'@storybook/addon-docs/blocks'
2
2
import { linkTo } from'@storybook/addon-links'
3
-
import*asStoriesfrom'./introduction.stories.ts';
3
+
import*asStoriesfrom'./introduction.stories.ts'
4
+
import { Alert } from'./assets/components'
4
5
import { Card } from'./assets/components'
5
6
6
7
<Metaof={Stories} />
@@ -51,3 +52,9 @@ If you want to see most of the reusable components above in action before diggin
51
52
We've called it a demo, but the truth is that by switching the linked organization [from test to live mode](https://docs.commercelayer.io/core/api-specification#environments) on the Commerce Layer Admin Dashboard, this can be considered a full-fledged, up and running production website 😮 — and it took a snap to build it!
52
53
53
54
<CanvassourceState="hidden"of={Stories.Basic} />
55
+
56
+
<Alerttitle="How to run the demo locally?"type="info">
57
+
You can simply copy and paste the example above into a new HTML file named `index.html`.
58
+
Opening the `index.html` file directly in a browser won’t work because cookies are disabled when using the `file://` protocol for security reasons.
59
+
Make sure to run the file through an HTTP server instead, for example, by using the [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) extension in VS Code, or by running [`npx serve`](https://www.npmjs.com/package/serve) if you’re familiar with Node.js.
0 commit comments