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

com.olvind.mui.muiMaterial.buttonGroupButtonGroupContextMod.scala Maven / Gradle / Ivy

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

import com.olvind.mui.react.mod.Context
import org.scalablytyped.runtime.Shortcut
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

object buttonGroupButtonGroupContextMod extends Shortcut {
  
  /**
    * @ignore - internal component.
    */
  @JSImport("@mui/material/ButtonGroup/ButtonGroupContext", JSImport.Default)
  @js.native
  val default: Context[IButtonGroupContext] = js.native
  
  trait IButtonGroupContext extends StObject {
    
    var className: js.UndefOr[String] = js.undefined
    
    var color: js.UndefOr["inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning"] = js.undefined
    
    var disableElevation: js.UndefOr[Boolean] = js.undefined
    
    var disableFocusRipple: js.UndefOr[Boolean] = js.undefined
    
    var disableRipple: js.UndefOr[Boolean] = js.undefined
    
    var disabled: js.UndefOr[Boolean] = js.undefined
    
    var fullWidth: js.UndefOr[Boolean] = js.undefined
    
    var size: js.UndefOr["small" | "medium" | "large"] = js.undefined
    
    var variant: js.UndefOr["text" | "outlined" | "contained"] = js.undefined
  }
  object IButtonGroupContext {
    
    inline def apply(): IButtonGroupContext = {
      val __obj = js.Dynamic.literal()
      __obj.asInstanceOf[IButtonGroupContext]
    }
    
    @scala.inline
    implicit open class MutableBuilder[Self <: IButtonGroupContext] (val x: Self) extends AnyVal {
      
      inline def setClassName(value: String): Self = StObject.set(x, "className", value.asInstanceOf[js.Any])
      
      inline def setClassNameUndefined: Self = StObject.set(x, "className", js.undefined)
      
      inline def setColor(value: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning"): Self = StObject.set(x, "color", value.asInstanceOf[js.Any])
      
      inline def setColorUndefined: Self = StObject.set(x, "color", js.undefined)
      
      inline def setDisableElevation(value: Boolean): Self = StObject.set(x, "disableElevation", value.asInstanceOf[js.Any])
      
      inline def setDisableElevationUndefined: Self = StObject.set(x, "disableElevation", js.undefined)
      
      inline def setDisableFocusRipple(value: Boolean): Self = StObject.set(x, "disableFocusRipple", value.asInstanceOf[js.Any])
      
      inline def setDisableFocusRippleUndefined: Self = StObject.set(x, "disableFocusRipple", js.undefined)
      
      inline def setDisableRipple(value: Boolean): Self = StObject.set(x, "disableRipple", value.asInstanceOf[js.Any])
      
      inline def setDisableRippleUndefined: Self = StObject.set(x, "disableRipple", js.undefined)
      
      inline def setDisabled(value: Boolean): Self = StObject.set(x, "disabled", value.asInstanceOf[js.Any])
      
      inline def setDisabledUndefined: Self = StObject.set(x, "disabled", js.undefined)
      
      inline def setFullWidth(value: Boolean): Self = StObject.set(x, "fullWidth", value.asInstanceOf[js.Any])
      
      inline def setFullWidthUndefined: Self = StObject.set(x, "fullWidth", js.undefined)
      
      inline def setSize(value: "small" | "medium" | "large"): Self = StObject.set(x, "size", value.asInstanceOf[js.Any])
      
      inline def setSizeUndefined: Self = StObject.set(x, "size", js.undefined)
      
      inline def setVariant(value: "text" | "outlined" | "contained"): Self = StObject.set(x, "variant", value.asInstanceOf[js.Any])
      
      inline def setVariantUndefined: Self = StObject.set(x, "variant", js.undefined)
    }
  }
  
  type _To = Context[IButtonGroupContext]
  
  /* This means you don't have to write `default`, but can instead just say `buttonGroupButtonGroupContextMod.foo` */
  override def _to: Context[IButtonGroupContext] = default
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy