UNPKG

@nent/core

Version:

Functional elements to add routing, data-binding, dynamic HTML, declarative actions, audio, video, and so much more. Supercharge static HTML files into web apps without script or builds.

4 lines 463 B
/*! * NENT 2022 */ import{r as s,h as t,H as e}from"./index-916ca544.js";import{s as i}from"./state-6945acbc.js";import"./index-4bfabbbd.js";const r=class{constructor(t){s(this,t),this.inputId="dark-mode"}render(){return t(e,{onClick:()=>{i.darkMode=!i.darkMode}},t("input",{type:"checkbox",ref:s=>{this.checkbox=s},class:this.inputClass,id:this.inputId,onChange:()=>{i.darkMode=this.checkbox.checked},checked:i.darkMode||!1}))}};export{r as n_app_theme_switch}