Props

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

Attributes

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

Members list

Type members

Classlikes

object color extends Prop[String]

The color of the button when it is in an active state. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

The color of the button when it is in an active state. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

Attributes

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

The size of the component. The prop defaults to the value inherited from the parent ToggleButtonGroup component.

The size of the component. The prop defaults to the value inherited from the parent ToggleButtonGroup component.

Attributes

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

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

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

If true, the keyboard focus ripple is disabled.

If true, the keyboard focus ripple is disabled.

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

If true, the component is disabled.

If true, the component is disabled.

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 onChange: Prop[Any => Any]

Callback fired when the state changes.

Callback fired when the state changes.

Value parameters

{React.MouseEvent<HTMLElement>}

event The event source of the callback.

{any}

value of the selected button.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]

Callback fired when the button is clicked.

Callback fired when the button is clicked.

Value parameters

{React.MouseEvent<HTMLElement>}

event The event source of the callback.

{any}

value of the selected button.

Attributes

def selected: Prop[Boolean]

If true, the button is rendered in an active state.

If true, the button is rendered in an active state.

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 value: Prop[Any]

The value to associate with the button when selected in a ToggleButtonGroup.

The value to associate with the button when selected in a ToggleButtonGroup.

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