Types

Link copied to clipboard
interface SlotProps

Properties

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

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

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

If true, the component is disabled.

Link copied to clipboard

If true, allows a disabled button to receive focus.

Link copied to clipboard
abstract var href: String?
Link copied to clipboard
abstract var key: Key?
Link copied to clipboard
Link copied to clipboard
abstract override var rootElementName: HtmlTagName<*>?

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

Link copied to clipboard
abstract var rootRef: Ref<Element>?
Link copied to clipboard

The props used for each slot inside the Button.

Link copied to clipboard
abstract 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 var tabIndex: Int?
Link copied to clipboard
abstract var to: String?
Link copied to clipboard
abstract var type: ButtonType?

Type attribute applied when the component is button.

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 <P : Props> ElementType<P>.invoke(noinline block: P.() -> 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()