ButtonOwnProps

Properties

Link copied to clipboard
abstract external override var children: ReactNode?

The content of the component.

Link copied to clipboard
abstract external var classes: ButtonClasses?

Override or extend the styles applied to the component.

Link copied to clipboard
abstract external var color: ButtonColor?

The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

Link copied to clipboard
abstract external var disabled: Boolean?

If true, the component is disabled.

Link copied to clipboard
abstract external var disableElevation: Boolean?

If true, no elevation is used.

Link copied to clipboard
abstract external var disableFocusRipple: Boolean?

If true, the keyboard focus ripple is disabled.

Link copied to clipboard
abstract external var endIcon: ReactNode?

Element placed after the children.

Link copied to clipboard
abstract external var fullWidth: Boolean?

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

Link copied to clipboard
abstract external var href: String?

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

Link copied to clipboard
abstract external var key: Key?
Link copied to clipboard
abstract external var loading: Boolean?

If true, the loading indicator is visible and the button is disabled. If true | false, the loading wrapper is always rendered before the children to prevent Google Translation Crash.

Link copied to clipboard
abstract external var loadingIndicator: ReactNode?

Element placed before the children if the button is in loading state. The node should contain an element with role="progressbar" with an accessible name. By default, it renders a CircularProgress that is labeled by the button itself.

Link copied to clipboard
abstract external var loadingPosition: LoadingPosition?

The loading indicator can be positioned on the start, end, or the center of the button.

Link copied to clipboard
abstract external var size: Size?

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

Link copied to clipboard
abstract external var startIcon: ReactNode?

Element placed before the children.

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

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

Link copied to clipboard
abstract external var variant: ButtonVariant?

The variant to use.

Functions

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