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

com.olvind.mui.muiMaterial.components.HiddenJs.scala Maven / Gradle / Ivy

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

import com.olvind.mui.StBuildingComponent
import com.olvind.mui.muiMaterial.hiddenHiddenJsMod.HiddenJsProps
import com.olvind.mui.muiSystem.createThemeCreateBreakpointsMod.Breakpoint
import slinky.web.html.`*`.tag
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

object HiddenJs {
  
  @JSImport("@mui/material/Hidden/HiddenJs", JSImport.Default)
  @js.native
  val component: js.Object = js.native
  
  @scala.inline
  open class Builder (val args: js.Array[Any])
    extends AnyVal
       with StBuildingComponent[tag.type, js.Object] {
    
    inline def lgDown(value: Boolean): this.type = set("lgDown", value.asInstanceOf[js.Any])
    
    inline def lgUp(value: Boolean): this.type = set("lgUp", value.asInstanceOf[js.Any])
    
    inline def mdDown(value: Boolean): this.type = set("mdDown", value.asInstanceOf[js.Any])
    
    inline def mdUp(value: Boolean): this.type = set("mdUp", value.asInstanceOf[js.Any])
    
    inline def only(value: Breakpoint | js.Array[Breakpoint]): this.type = set("only", value.asInstanceOf[js.Any])
    
    inline def onlyVarargs(value: Breakpoint*): this.type = set("only", js.Array(value*))
    
    inline def smDown(value: Boolean): this.type = set("smDown", value.asInstanceOf[js.Any])
    
    inline def smUp(value: Boolean): this.type = set("smUp", value.asInstanceOf[js.Any])
    
    inline def width(value: Breakpoint): this.type = set("width", value.asInstanceOf[js.Any])
    
    inline def xlDown(value: Boolean): this.type = set("xlDown", value.asInstanceOf[js.Any])
    
    inline def xlUp(value: Boolean): this.type = set("xlUp", value.asInstanceOf[js.Any])
    
    inline def xsDown(value: Boolean): this.type = set("xsDown", value.asInstanceOf[js.Any])
    
    inline def xsUp(value: Boolean): this.type = set("xsUp", value.asInstanceOf[js.Any])
  }
  
  type Props = HiddenJsProps
  
  implicit def make(companion: HiddenJs.type): Builder = new Builder(js.Array(this.component, js.Dictionary.empty))()
  
  def styled: com.olvind.mui.StyledComponent.Builder[HiddenJsProps, Builder] = new com.olvind.mui.StyledComponent.Builder[HiddenJsProps, Builder](this.component, new js.Object, js.Array(), (newComponent: Any) => new Builder(js.Array(newComponent, js.Dictionary.empty)))
  
  def withProps(p: HiddenJsProps): Builder = new Builder(js.Array(this.component, p.asInstanceOf[js.Any]))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy