All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.olvind.mui.muiMaterial.nativeSelectNativeSelectInputMod.scala Maven / Gradle / Ivy
package com.olvind.mui.muiMaterial
import com.olvind.mui.muiMaterial.stylesCreateThemeMod.Theme
import com.olvind.mui.muiSystem.styleFunctionSxStyleFunctionSxMod.SxProps
import com.olvind.mui.muiSystem.styleFunctionSxStyleFunctionSxMod.SystemStyleObject
import com.olvind.mui.react.mod.JSXElementConstructor
import com.olvind.mui.react.mod.Ref
import com.olvind.mui.react.mod.SelectHTMLAttributes
import org.scalablytyped.runtime.Shortcut
import org.scalajs.dom.HTMLSelectElement
import slinky.core.facade.ReactElement
import slinky.core.facade.ReactRef
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object nativeSelectNativeSelectInputMod extends Shortcut {
@JSImport("@mui/material/NativeSelect/NativeSelectInput", JSImport.Default)
@js.native
val default: JSXElementConstructor[NativeSelectInputProps] = js.native
trait NativeSelectInputProps
extends StObject
with SelectHTMLAttributes[HTMLSelectElement] {
var IconComponent: ReactElement
var inputRef: js.UndefOr[Ref[HTMLSelectElement]] = js.undefined
var sx: js.UndefOr[SxProps[Theme]] = js.undefined
var variant: js.UndefOr["standard" | "outlined" | "filled"] = js.undefined
}
object NativeSelectInputProps {
inline def apply(IconComponent: ReactElement): NativeSelectInputProps = {
val __obj = js.Dynamic.literal(IconComponent = IconComponent.asInstanceOf[js.Any])
__obj.asInstanceOf[NativeSelectInputProps]
}
@scala.inline
implicit open class MutableBuilder[Self <: NativeSelectInputProps] (val x: Self) extends AnyVal {
inline def setIconComponent(value: ReactElement): Self = StObject.set(x, "IconComponent", value.asInstanceOf[js.Any])
inline def setInputRef(value: Ref[HTMLSelectElement]): Self = StObject.set(x, "inputRef", value.asInstanceOf[js.Any])
inline def setInputRefFunction1(value: /* instance */ HTMLSelectElement | Null => Unit): Self = StObject.set(x, "inputRef", js.Any.fromFunction1(value))
inline def setInputRefNull: Self = StObject.set(x, "inputRef", null)
inline def setInputRefReactRef(value: ReactRef[HTMLSelectElement]): Self = StObject.set(x, "inputRef", value.asInstanceOf[js.Any])
inline def setInputRefUndefined: Self = StObject.set(x, "inputRef", js.undefined)
inline def setSx(value: SxProps[Theme]): Self = StObject.set(x, "sx", value.asInstanceOf[js.Any])
inline def setSxFunction1(value: Theme => SystemStyleObject[Theme]): Self = StObject.set(x, "sx", js.Any.fromFunction1(value))
inline def setSxNull: Self = StObject.set(x, "sx", null)
inline def setSxUndefined: Self = StObject.set(x, "sx", js.undefined)
inline def setSxVarargs(value: (Boolean | SystemStyleObject[Theme] | (js.Function1[Theme, SystemStyleObject[Theme]]))*): Self = StObject.set(x, "sx", js.Array(value*))
inline def setVariant(value: "standard" | "outlined" | "filled"): Self = StObject.set(x, "variant", value.asInstanceOf[js.Any])
inline def setVariantUndefined: Self = StObject.set(x, "variant", js.undefined)
}
}
type _To = JSXElementConstructor[NativeSelectInputProps]
/* This means you don't have to write `default`, but can instead just say `nativeSelectNativeSelectInputMod.foo` */
override def _to: JSXElementConstructor[NativeSelectInputProps] = default
}