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

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

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

import com.olvind.mui.muiMaterial.anon.Classes
import com.olvind.mui.muiMaterial.anon.DefaultComponentPropsAppBarTypeMapheader
import com.olvind.mui.muiMaterial.anon.DistributiveOmitPaperPropsPaperTypeMapdi
import com.olvind.mui.muiMaterial.overridableComponentMod.OverrideProps
import com.olvind.mui.react.mod.global.JSX.Element
import org.scalablytyped.runtime.Shortcut
import slinky.core.facade.ReactElement
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

object appBarAppBarMod extends Shortcut {
  
  /**
    *
    * Demos:
    *
    * - [App Bar](https://mui.com/material-ui/react-app-bar/)
    *
    * API:
    *
    * - [AppBar API](https://mui.com/material-ui/api/app-bar/)
    * - inherits [Paper API](https://mui.com/material-ui/api/paper/)
    */
  @JSImport("@mui/material/AppBar/AppBar", JSImport.Default)
  @js.native
  val default: js.Function1[/* props */ DefaultComponentPropsAppBarTypeMapheader, Element] = js.native
  
  type AppBarProps[D /* <: ReactElement */, P] = OverrideProps[AppBarTypeMap[P, D], D]
  
  trait AppBarPropsColorOverrides extends StObject
  
  trait AppBarTypeMap[P, D /* <: ReactElement */] extends StObject {
    
    var defaultComponent: D
    
    var props: P & DistributiveOmitPaperPropsPaperTypeMapdi & Classes
  }
  object AppBarTypeMap {
    
    inline def apply[P, D /* <: ReactElement */](defaultComponent: D, props: P & DistributiveOmitPaperPropsPaperTypeMapdi & Classes): AppBarTypeMap[P, D] = {
      val __obj = js.Dynamic.literal(defaultComponent = defaultComponent.asInstanceOf[js.Any], props = props.asInstanceOf[js.Any])
      __obj.asInstanceOf[AppBarTypeMap[P, D]]
    }
    
    @scala.inline
    implicit open class MutableBuilder[Self <: AppBarTypeMap[?, ?], P, D /* <: ReactElement */] (val x: Self & (AppBarTypeMap[P, D])) extends AnyVal {
      
      inline def setDefaultComponent(value: D): Self = StObject.set(x, "defaultComponent", value.asInstanceOf[js.Any])
      
      inline def setProps(value: P & DistributiveOmitPaperPropsPaperTypeMapdi & Classes): Self = StObject.set(x, "props", value.asInstanceOf[js.Any])
    }
  }
  
  type _To = js.Function1[/* props */ DefaultComponentPropsAppBarTypeMapheader, Element]
  
  /* This means you don't have to write `default`, but can instead just say `appBarAppBarMod.foo` */
  override def _to: js.Function1[/* props */ DefaultComponentPropsAppBarTypeMapheader, Element] = default
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy