ButtonBaseOwnProps

Properties

Link copied to clipboard
abstract var action: Ref<ButtonBaseActions>?

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

Link copied to clipboard
abstract var centerRipple: Boolean?

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

Link copied to clipboard
abstract override var children: ReactNode?

The content of the component.

Link copied to clipboard
abstract var classes: ButtonBaseClasses?

Override or extend the styles applied to the component.

Link copied to clipboard
abstract var disabled: Boolean?

If true, the component is disabled.

Link copied to clipboard
abstract var disableRipple: Boolean?

If true, the ripple effect is disabled.

Link copied to clipboard

If true, the touch ripple effect is disabled.

Link copied to clipboard
abstract var focusRipple: Boolean?

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

Link copied to clipboard

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.

Link copied to clipboard
abstract var key: Key?
Link copied to clipboard
abstract var LinkComponent: ElementType<*>?

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

Link copied to clipboard

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

Link copied to clipboard
abstract override var sx: SxProps<Theme>?

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

Link copied to clipboard
abstract var tabIndex: Int?
Link copied to clipboard
abstract var TouchRippleProps: dynamic

Props applied to the TouchRipple element.

Link copied to clipboard

A ref that points to the TouchRipple element.

Functions

Link copied to clipboard
open inline fun <P : Props> child(type: ElementType<P>, props: P)
Link copied to clipboard
open inline operator fun <P : Props> ElementType<P>.invoke()
open inline operator fun <T> ContextType<T>.invoke(noinline block: ProviderProps<T>.() -> Unit)
open inline operator fun <P : Props> ElementType<P>.invoke(noinline block: P.() -> Unit)
open inline operator fun <T> ContextType<T>.invoke(value: T, noinline block: ChildrenBuilder.() -> Unit)
open inline operator fun <T> Provider<T>.invoke(value: T, noinline block: ChildrenBuilder.() -> Unit)
Link copied to clipboard
open inline operator fun Char.unaryPlus()
open inline operator fun String?.unaryPlus()
open inline operator fun ReactNode?.unaryPlus()
open inline operator fun Props?.unaryPlus()