diff --git a/js/ui.js b/js/ui.js index c81d8cd..1cb43ea 100644 --- a/js/ui.js +++ b/js/ui.js @@ -5,8 +5,8 @@ import * as Tone from "./tone.js"; /** @typedef {({children, classes}:{children?:preact.ComponentChildren, classes?:string})=>preact.VNode} BasicElement */ -/** @type {({children, icon, light, disabled, inactive, onClick, classes}:{children:preact.VNode, icon?:preact.VNode, light:boolean, disabled:boolean, inactive:boolean, onClick:()=>void, classes?:string})=>preact.VNode} */ -export function Button({children, icon, light, disabled, inactive, onClick, classes}) +/** @type {({children, icon, light, disabled, inactive, onClick, classes, classesActive}:{children:preact.VNode, icon?:preact.VNode, light:boolean, disabled:boolean, inactive:boolean, onClick:()=>void, classes?:string, classesActive?:string})=>preact.VNode} */ +export function Button({children, icon, light, disabled, inactive, onClick, classes, classesActive}) { const [FlashGet, FlashSet] = React.useState(0); const handleClick =()=> @@ -19,7 +19,7 @@ export function Button({children, icon, light, disabled, inactive, onClick, clas return html`