All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.olvind.mui.react.mod.ReactElement.scala Maven / Gradle / Ivy

The newest version!
package com.olvind.mui.react.mod

import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

trait ReactElement extends StObject {
  
  var key: Key | Null
  
  var props: Any
  
  var `type`: Any
}
object ReactElement {
  
  inline def apply(props: Any, `type`: Any): ReactElement = {
    val __obj = js.Dynamic.literal(props = props.asInstanceOf[js.Any], key = null)
    __obj.updateDynamic("type")(`type`.asInstanceOf[js.Any])
    __obj.asInstanceOf[ReactElement]
  }
  
  @scala.inline
  implicit open class MutableBuilder[Self <: ReactElement] (val x: Self) extends AnyVal {
    
    inline def setKey(value: Key): Self = StObject.set(x, "key", value.asInstanceOf[js.Any])
    
    inline def setKeyNull: Self = StObject.set(x, "key", null)
    
    inline def setProps(value: Any): Self = StObject.set(x, "props", value.asInstanceOf[js.Any])
    
    inline def setType(value: Any): Self = StObject.set(x, "type", value.asInstanceOf[js.Any])
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy