Props

io.github.nafg.scalajs.facades.mui.Tabs$.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 indicatorColor extends Prop[String]

Determines the color of the indicator.

Determines the color of the indicator.

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
object orientation extends Prop[String]

The tabs orientation (layout flow direction).

The tabs orientation (layout flow direction).

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
object scrollButtons extends Prop[String]

Determine behavior of scroll buttons when tabs are set to scroll:

Determine behavior of scroll buttons when tabs are set to scroll:

  • auto will only present them when not all the items are visible.
  • desktop will only present them on medium and larger viewports.
  • on will always present them.
  • off will never present them.

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
object textColor extends Prop[String]

Determines the color of the Tab.

Determines the color of the Tab.

Attributes

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

Determines additional display behavior of the tabs:

Determines additional display behavior of the tabs:

  • scrollable will invoke scrolling properties and allow for horizontally scrolling (or swiping) of the tab bar. -fullWidth will make the tabs grow to use all the available space, which should be used for small views, like on mobile.
  • standard will render the default state.

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 ScrollButtonComponent: Prop[ElementType]

The component used to render the scroll buttons.

The component used to render the scroll buttons.

Attributes

def TabIndicatorProps: Prop[Object]

Props applied to the tab indicator element.

Props applied to the tab indicator element.

Attributes

def TabScrollButtonProps: Prop[Object]

Props applied to the TabScrollButton element.

Props applied to the TabScrollButton element.

Attributes

def action: Prop[Any]

Callback fired when the component mounts. This is useful when you want to trigger an action programmatically. It supports two actions: updateIndicator() and updateScrollButtons()

Callback fired when the component mounts. This is useful when you want to trigger an action programmatically. It supports two actions: updateIndicator() and updateScrollButtons()

Attributes

{object}

actions This object contains all possible actions that can be triggered programmatically.

def aria-label: Prop[String]

The label for the Tabs as a string.

The label for the Tabs as a string.

Attributes

def aria-labelledby: Prop[String]

An id or list of ids separated by a space that label the Tabs.

An id or list of ids separated by a space that label the Tabs.

Attributes

def centered: Prop[Boolean]

If true, the tabs will be centered. This property is intended for large views.

If true, the tabs will be centered. This property is intended for large views.

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

Callback fired when the value changes.

Callback fired when the value changes.

Attributes

{any}

value We default to the index of the child (number)

{object}

event The event source of the callback

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def selectionFollowsFocus: Prop[Boolean]

If true the selected tab changes on focus. Otherwise it only changes on activation.

If true the selected tab changes on focus. Otherwise it only changes on activation.

Attributes

def style: Prop[Object]
def value: Prop[Any]

The value of the currently selected Tab. If you don't want any selected Tab, you can set this property to false.

The value of the currently selected Tab. If you don't want any selected Tab, you can set this property to false.

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