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

com.olvind.mui.muiMaterial.anon.DefaultComponentProps.scala Maven / Gradle / Ivy

The newest version!
package com.olvind.mui.muiMaterial.anon

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

trait DefaultComponentProps[P, D /* <: ReactElement */] extends StObject {
  
  var defaultComponent: D
  
  var props: P & AnchorOrigin
}
object DefaultComponentProps {
  
  inline def apply[P, D /* <: ReactElement */](defaultComponent: D, props: P & AnchorOrigin): DefaultComponentProps[P, D] = {
    val __obj = js.Dynamic.literal(defaultComponent = defaultComponent.asInstanceOf[js.Any], props = props.asInstanceOf[js.Any])
    __obj.asInstanceOf[DefaultComponentProps[P, D]]
  }
  
  @scala.inline
  implicit open class MutableBuilder[Self <: DefaultComponentProps[?, ?], P, D /* <: ReactElement */] (val x: Self & (DefaultComponentProps[P, D])) extends AnyVal {
    
    inline def setDefaultComponent(value: D): Self = StObject.set(x, "defaultComponent", value.asInstanceOf[js.Any])
    
    inline def setProps(value: P & AnchorOrigin): Self = StObject.set(x, "props", value.asInstanceOf[js.Any])
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy