Props

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

Attributes

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

Members list

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def LinkComponent: Prop[ElementType]

The component used to render a link when the href prop is provided.

The component used to render a link when the href prop is provided.

Attributes

def TouchRippleProps: Prop[Object]

Props applied to the TouchRipple element.

Props applied to the TouchRipple element.

Attributes

def action: Prop[Any]

A ref for imperative actions. It currently only supports focusVisible() action.

A ref for imperative actions. It currently only supports focusVisible() action.

Attributes

def centerRipple: Prop[Boolean]

If true, the ripples are centered. They won't start at the cursor interaction position.

If true, the ripples are centered. They won't start at the cursor interaction position.

Attributes

def children: Prop[VdomNode]

The content of the component.

The content of the component.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component.

Override or extend the styles applied to the component.

Attributes

def component: Prop[Any]

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 disableRipple: Prop[Boolean]

If true, the ripple effect is disabled.

If true, the ripple effect is 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 .Mui-focusVisible class.

Attributes

def disableTouchRipple: Prop[Boolean]

If true, the touch ripple effect is disabled.

If true, the touch ripple effect is disabled.

Attributes

def disabled: Prop[Boolean]

If true, the component is disabled.

If true, the component is disabled.

Attributes

def focusRipple: Prop[Boolean]

If true, the base button will have a keyboard focus ripple.

If true, the base button will have a keyboard focus ripple.

Attributes

def focusVisibleClassName: Prop[String]

This prop can help identify which element has keyboard focus. The class name will be applied when the element gains the focus through keyboard interaction. It's a polyfill for the CSS :focus-visible selector. The rationale for using this feature is explained here. A polyfill can be used to apply a focus-visible class to other components if needed.

This prop can help identify which element has keyboard focus. The class name will be applied when the element gains the focus through keyboard interaction. It's a polyfill for the CSS :focus-visible selector. The rationale for using this feature is explained here. A polyfill can be used to apply a focus-visible class to other components if needed.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onFocusVisible: Prop[Any => Any]

Callback fired when the component is focused with a keyboard. We trigger a onFocus callback too.

Callback fired when the component is focused with a keyboard. We trigger a onFocus callback too.

Attributes

def style: Prop[Object]
def sx: Prop[Seq[Any => Any | Object | Boolean] | Any => Any | Object]

The system prop that allows defining system overrides as well as additional CSS styles.

The system prop that allows defining system overrides as well as additional CSS styles.

Attributes

def tabIndex: Prop[Double]

Attributes

def touchRippleRef: Prop[Any => Any | Object]

A ref that points to the TouchRipple element.

A ref that points to the TouchRipple element.

Attributes

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