Types

Link copied to clipboard
external interface SlotProps

Properties

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

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

Link copied to clipboard
abstract external override var children: ReactNode?
Link copied to clipboard
abstract external override var className: ClassName?
Link copied to clipboard
abstract external var disabled: Boolean?

If true, the component is disabled.

Link copied to clipboard
abstract external var focusableWhenDisabled: Boolean?

If true, allows a disabled button to receive focus.

Link copied to clipboard
abstract external var href: String?
Link copied to clipboard
abstract external var key: Key?
Link copied to clipboard
abstract external var onFocusVisible: FocusEventHandler<*>?
Link copied to clipboard
abstract external override var rootElementName: TagName<out HTMLElement>?

The HTML element that is ultimately rendered, for example 'button' or 'a'

Link copied to clipboard
abstract external var rootRef: Ref<Element>?
Link copied to clipboard
abstract external var slotProps: ButtonOwnProps.SlotProps?

The props used for each slot inside the Button.

Link copied to clipboard
abstract external var slots: ButtonSlots?

The components used for each slot inside the Button. Either a string to use a HTML element or a component.

Link copied to clipboard
abstract external var tabIndex: Int?
Link copied to clipboard
abstract external var to: String?
Link copied to clipboard
abstract external var type: ButtonType?

Type attribute applied when the component is button.

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()