Props

io.github.nafg.scalajs.facades.mui.Button$.Props
class Props extends WithChildren[VdomNode]

Attributes

Graph
Supertypes
trait WithChildren[VdomNode]
trait PropTypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

object color extends Prop[String]

The color of the component. It supports those theme colors that make sense for this component.

The color of the component. It supports those theme colors that make sense for this component.

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
color.type
object size extends Prop[String]

The size of the button. small is equivalent to the dense button styling.

The size of the button. small is equivalent to the dense button styling.

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
size.type
object variant extends Prop[String]

The variant to use.

The variant to use.

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
variant.type

Inherited classlikes

object dyn extends Dynamic

Attributes

Inherited from:
PropTypes
Graph
Supertypes
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

def children: Prop[VdomNode]

The content of the button.

The content of the button.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component. See CSS API below for more details.

Override or extend the styles applied to the component. See CSS API below for more details.

Attributes

def component: Prop[ElementType]

The component used for the root node. Either a string to use a HTML element or a component.

The component used for the root node. Either a string to use a HTML element or a component.

Attributes

def disableElevation: Prop[Boolean]

If true, no elevation is used.

If true, no elevation is used.

Attributes

def disableFocusRipple: Prop[Boolean]

If true, the keyboard focus ripple will be disabled.

If true, the keyboard focus ripple will be disabled.

Attributes

def disableRipple: Prop[Boolean]

If true, the ripple effect will be disabled.

If true, the ripple effect will be disabled.

⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure to highlight the element by applying separate styles with the focusVisibleClassName.

Attributes

def disabled: Prop[Boolean]

If true, the button will be disabled.

If true, the button will be disabled.

Attributes

def endIcon: Prop[VdomNode]

Element placed after the children.

Element placed after the children.

Attributes

def fullWidth: Prop[Boolean]

If true, the button will take up the full width of its container.

If true, the button will take up the full width of its container.

Attributes

def href: Prop[String]

The URL to link to when the button is clicked. If defined, an a element will be used as the root node.

The URL to link to when the button is clicked. If defined, an a element will be used as the root node.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def startIcon: Prop[VdomNode]

Element placed before the children.

Element placed before the children.

Attributes

def style: Prop[Object]

Inherited methods

def of[A : Writer](implicit evidence$1: Writer[A], name: Name): Prop[A]

Attributes

Inherited from:
PropTypes

Inherited fields

val key: Prop[Key]

Attributes

Inherited from:
PropTypes