瀏覽代碼

Sort Storybook stories alphabetically (#26225)

GitOrigin-RevId: d7cf167a67ea24d7095fb27e6090ef735e966536
Alf Eaton 1 年之前
父節點
當前提交
afe146a620
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      services/web/.storybook/preview.tsx

+ 6 - 0
services/web/.storybook/preview.tsx

@@ -122,6 +122,12 @@ const preview: Preview = {
       // render stories in iframes, to isolate modals
       inlineStories: false,
     },
+    options: {
+      storySort: {
+        method: 'alphabetical',
+        order: ['Shared'],
+      },
+    },
   },
   globalTypes: {
     theme: {