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

com.olvind.mui.muiBase.anon.Input.scala Maven / Gradle / Ivy

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

import com.olvind.mui.muiBase.inputUnstyledInputUnstyledDottypesMod.InputUnstyledInputSlotPropsOverrides
import com.olvind.mui.muiBase.inputUnstyledInputUnstyledDottypesMod.InputUnstyledOwnerState
import com.olvind.mui.muiBase.inputUnstyledInputUnstyledDottypesMod.InputUnstyledRootSlotPropsOverrides
import com.olvind.mui.muiBase.utilsTypesMod.SlotComponentProps
import com.olvind.mui.react.mod.ComponentPropsWithRef
import com.olvind.mui.std.Partial
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

trait Input extends StObject {
  
  var input: js.UndefOr[
    SlotComponentProps["input", InputUnstyledInputSlotPropsOverrides, InputUnstyledOwnerState]
  ] = js.undefined
  
  var root: js.UndefOr[
    SlotComponentProps["div", InputUnstyledRootSlotPropsOverrides, InputUnstyledOwnerState]
  ] = js.undefined
}
object Input {
  
  inline def apply(): Input = {
    val __obj = js.Dynamic.literal()
    __obj.asInstanceOf[Input]
  }
  
  @scala.inline
  implicit open class MutableBuilder[Self <: Input] (val x: Self) extends AnyVal {
    
    inline def setInput(value: SlotComponentProps["input", InputUnstyledInputSlotPropsOverrides, InputUnstyledOwnerState]): Self = StObject.set(x, "input", value.asInstanceOf[js.Any])
    
    inline def setInputFunction1(
      value: InputUnstyledOwnerState => Partial[ComponentPropsWithRef["input"]] & InputUnstyledInputSlotPropsOverrides
    ): Self = StObject.set(x, "input", js.Any.fromFunction1(value))
    
    inline def setInputUndefined: Self = StObject.set(x, "input", js.undefined)
    
    inline def setRoot(value: SlotComponentProps["div", InputUnstyledRootSlotPropsOverrides, InputUnstyledOwnerState]): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
    
    inline def setRootFunction1(
      value: InputUnstyledOwnerState => Partial[ComponentPropsWithRef["div"]] & InputUnstyledRootSlotPropsOverrides
    ): Self = StObject.set(x, "root", js.Any.fromFunction1(value))
    
    inline def setRootUndefined: Self = StObject.set(x, "root", js.undefined)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy