Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yagizhanNY committed Oct 5, 2023
1 parent ddb4a6a commit a94dbed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ Add `Theme` component to the page that you want to manipulate the theme.

```razor
<Theme @ref="themeProvider"></Theme>
<Button ClickEvent="SetDarkTheme">Set Dark Theme</Button>
<Button ClickEvent="ToggleTheme">Toggle Theme</Button>
<Button ClickEvent="ToggleSystemTheme">Toggle System Theme Theme</Button>
```

Then use this methods to change theme.
Expand All @@ -64,7 +68,7 @@ public partial class Index

}

private async Task CheckboxChanged()
private async Task ToggleTheme()
{
await themeProvider.ToggleTheme();
}
Expand Down

0 comments on commit a94dbed

Please sign in to comment.