diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-22 10:00:21 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-18 17:03:21 +1000 |
| commit | ff715df3ccda51c1bb3d4b84f4391b4fdd1962dd (patch) | |
| tree | 00cca236a9036896dc7a1d3688311c65f96159d8 /Pages/Component/Switch.razor | |
| parent | 4558ed9d6cbc59229cd56cc7a6c36b1df0b8199a (diff) | |
Finalised initial implementation of NSFW tag filtering
Diffstat (limited to 'Pages/Component/Switch.razor')
| -rw-r--r-- | Pages/Component/Switch.razor | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Pages/Component/Switch.razor b/Pages/Component/Switch.razor index ffb3543..d11ac81 100644 --- a/Pages/Component/Switch.razor +++ b/Pages/Component/Switch.razor @@ -3,6 +3,7 @@ <label> <input type="checkbox" + checked=@InitialValue @onchange=@(e => OnToggle.InvokeAsync((e.Value as bool?) ?? false)) hidden/> <div class="switch-outer"> @@ -11,5 +12,9 @@ </label> @code { + [Parameter] + public bool InitialValue { get; set; } = false; + + [Parameter] public EventCallback<bool> OnToggle { get; set; } } |
