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

com.olvind.mui.muiMaterial.linkLinkClassesMod.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 linkLinkClassesMod {
  
  @JSImport("@mui/material/Link/linkClasses", JSImport.Namespace)
  @js.native
  val ^ : js.Any = js.native
  
  @JSImport("@mui/material/Link/linkClasses", JSImport.Default)
  @js.native
  val default: LinkClasses = js.native
  
  inline def getLinkUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getLinkUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
  
  type LinkClassKey = "root" | "underlineNone" | "underlineHover" | "underlineAlways" | "button" | "focusVisible"
  
  trait LinkClasses extends StObject {
    
    /** Styles applied to the root element if `component="button"`. */
    var button: String
    
    /** State class applied to the root element if the link is keyboard focused. */
    var focusVisible: String
    
    /** Styles applied to the root element. */
    var root: String
    
    /** Styles applied to the root element if `underline="always"`. */
    var underlineAlways: String
    
    /** Styles applied to the root element if `underline="hover"`. */
    var underlineHover: String
    
    /** Styles applied to the root element if `underline="none"`. */
    var underlineNone: String
  }
  object LinkClasses {
    
    inline def apply(
      button: String,
      focusVisible: String,
      root: String,
      underlineAlways: String,
      underlineHover: String,
      underlineNone: String
    ): LinkClasses = {
      val __obj = js.Dynamic.literal(button = button.asInstanceOf[js.Any], focusVisible = focusVisible.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any], underlineAlways = underlineAlways.asInstanceOf[js.Any], underlineHover = underlineHover.asInstanceOf[js.Any], underlineNone = underlineNone.asInstanceOf[js.Any])
      __obj.asInstanceOf[LinkClasses]
    }
    
    @scala.inline
    implicit open class MutableBuilder[Self <: LinkClasses] (val x: Self) extends AnyVal {
      
      inline def setButton(value: String): Self = StObject.set(x, "button", value.asInstanceOf[js.Any])
      
      inline def setFocusVisible(value: String): Self = StObject.set(x, "focusVisible", value.asInstanceOf[js.Any])
      
      inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
      
      inline def setUnderlineAlways(value: String): Self = StObject.set(x, "underlineAlways", value.asInstanceOf[js.Any])
      
      inline def setUnderlineHover(value: String): Self = StObject.set(x, "underlineHover", value.asInstanceOf[js.Any])
      
      inline def setUnderlineNone(value: String): Self = StObject.set(x, "underlineNone", value.asInstanceOf[js.Any])
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy