BadgeOwnProps

external interface BadgeOwnProps : PropsWithChildren(source)

Inheritors

Types

Link copied to clipboard
external interface SlotProps

Properties

Link copied to clipboard
abstract external var badgeContent: ReactNode?

The content rendered within the badge.

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

The badge will be added relative to this node.

Link copied to clipboard
abstract external var invisible: Boolean?

If true, the badge is invisible.

Link copied to clipboard
abstract external var key: Key?
Link copied to clipboard
abstract external var max: Double?

Max count to show.

Link copied to clipboard
abstract external var showZero: Boolean?

Controls whether the badge is hidden when badgeContent is zero.

Link copied to clipboard
abstract external var slotProps: BadgeOwnProps.SlotProps?

The props used for each slot inside the Badge.

Link copied to clipboard
abstract external var slots: BadgeSlots?

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

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