diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-20 22:59:09 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-20 22:59:09 +1000 |
| commit | c29bdd4a9ec782411f57e3c798e1bb01ca7d417d (patch) | |
| tree | fdb2046af3454a96a9733e156b9c86f538eea21c /Pages/Component/Switch.razor | |
| parent | dfff79815acc86c02dd94716098d409d3fe46ab7 (diff) | |
NSFW tagging and tag editing
Diffstat (limited to 'Pages/Component/Switch.razor')
| -rw-r--r-- | Pages/Component/Switch.razor | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Pages/Component/Switch.razor b/Pages/Component/Switch.razor new file mode 100644 index 0000000..ffb3543 --- /dev/null +++ b/Pages/Component/Switch.razor @@ -0,0 +1,15 @@ +<link rel="stylesheet" href="@(nameof(HyperBooru)).styles.css"/> + +<label> + <input + type="checkbox" + @onchange=@(e => OnToggle.InvokeAsync((e.Value as bool?) ?? false)) + hidden/> + <div class="switch-outer"> + <div class="switch-inner"/> + </div> +</label> + +@code { + public EventCallback<bool> OnToggle { get; set; } +} |
