chore: manage files

This commit is contained in:
QiShaoXuan
2022-09-28 17:16:18 +08:00
parent 008c0d83e3
commit dec69d4f44
5 changed files with 40 additions and 25 deletions
+11 -3
View File
@@ -14,19 +14,27 @@ const Home: NextPage = () => {
<div>
<Button>A button use the theme styles</Button>
<simple-counter name="A counter created by web component" />
<p>current mode {mode}</p>
<button
onClick={() => {
changeMode(mode === 'dark' ? 'light' : 'dark');
changeMode('light');
}}
>
current theme mode :{mode}(click to change)
light
</button>
<button
onClick={() => {
changeMode('dark');
}}
>
dark
</button>
<button
onClick={() => {
changeMode('auto');
}}
>
click to set "auto" mode
auto
</button>
</div>
);