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

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

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

import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

object bottomNavigationActionBottomNavigationActionClassesMod {
  
  @JSImport("@mui/material/BottomNavigationAction/bottomNavigationActionClasses", JSImport.Namespace)
  @js.native
  val ^ : js.Any = js.native
  
  @JSImport("@mui/material/BottomNavigationAction/bottomNavigationActionClasses", JSImport.Default)
  @js.native
  val default: BottomNavigationActionClasses = js.native
  
  inline def getBottomNavigationActionUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getBottomNavigationActionUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
  
  type BottomNavigationActionClassKey = "root" | "selected" | "iconOnly" | "label"
  
  trait BottomNavigationActionClasses extends StObject {
    
    /** State class applied to the root element if `showLabel={false}` and not selected. */
    var iconOnly: String
    
    /** Styles applied to the label's span element. */
    var label: String
    
    /** Styles applied to the root element. */
    var root: String
    
    /** State class applied to the root element if selected. */
    var selected: String
  }
  object BottomNavigationActionClasses {
    
    inline def apply(iconOnly: String, label: String, root: String, selected: String): BottomNavigationActionClasses = {
      val __obj = js.Dynamic.literal(iconOnly = iconOnly.asInstanceOf[js.Any], label = label.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any], selected = selected.asInstanceOf[js.Any])
      __obj.asInstanceOf[BottomNavigationActionClasses]
    }
    
    @scala.inline
    implicit open class MutableBuilder[Self <: BottomNavigationActionClasses] (val x: Self) extends AnyVal {
      
      inline def setIconOnly(value: String): Self = StObject.set(x, "iconOnly", value.asInstanceOf[js.Any])
      
      inline def setLabel(value: String): Self = StObject.set(x, "label", value.asInstanceOf[js.Any])
      
      inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
      
      inline def setSelected(value: String): Self = StObject.set(x, "selected", value.asInstanceOf[js.Any])
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy