This commit is contained in:
2023-11-02 14:47:08 +08:00
parent 8fa486e420
commit 03b0016db1
38 changed files with 12616 additions and 15652 deletions

View File

@@ -0,0 +1,18 @@
import { DocsContainer as BaseContainer } from "@storybook/blocks";
import { themes } from "@storybook/theming";
import React from "react";
import { useDarkMode } from "storybook-dark-mode";
export const DocsContainer = ({ children, context }) => {
const dark = useDarkMode();
return (
<BaseContainer
context={context}
theme={dark ? themes.dark : themes.light}
>
{children}
</BaseContainer>
);
};