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

com.olvind.mui.emotionReact.components.ThemeProvider.scala Maven / Gradle / Ivy

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

import com.olvind.mui.StBuildingComponent.Default
import com.olvind.mui.emotionReact.mod.Theme
import com.olvind.mui.emotionReact.typesThemingMod.ThemeProviderProps
import com.olvind.mui.StyledComponent.Builder
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 ThemeProvider {
  
  inline def apply(theme: js.Object | (js.Function1[/* outerTheme */ Theme, Theme])): Default[tag.type, js.Object] = {
    val __props = js.Dynamic.literal(theme = theme.asInstanceOf[js.Any])
    new Default[tag.type, js.Object](js.Array(this.component, __props.asInstanceOf[/* props */ ThemeProviderProps]))
  }
  
  @JSImport("@emotion/react", "ThemeProvider")
  @js.native
  val component: js.Object = js.native
  
  type Props = /* props */ ThemeProviderProps
  
  def styled: Builder[/* props */ ThemeProviderProps, Default[tag.type, js.Object]] = new Builder[/* props */ ThemeProviderProps, Default[tag.type, js.Object]](this.component, new js.Object, js.Array(), (newComponent: Any) => new Default[tag.type, js.Object](js.Array(newComponent, js.Dictionary.empty)))
  
  def withProps(p: /* props */ ThemeProviderProps): Default[tag.type, js.Object] = new Default[tag.type, js.Object](js.Array(this.component, p.asInstanceOf[js.Any]))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy