com.olvind.mui.muiSystem.anon.Mode.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.muiSystem.anon
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait Mode extends StObject {
var mode: "light" | "dark"
}
object Mode {
inline def apply(mode: "light" | "dark"): Mode = {
val __obj = js.Dynamic.literal(mode = mode.asInstanceOf[js.Any])
__obj.asInstanceOf[Mode]
}
@scala.inline
implicit open class MutableBuilder[Self <: Mode] (val x: Self) extends AnyVal {
inline def setMode(value: "light" | "dark"): Self = StObject.set(x, "mode", value.asInstanceOf[js.Any])
}
}