Properties

Link copied to clipboard
abstract override var children: ReactNode?

The content of the component.

Link copied to clipboard
abstract var classes: TreeItemClasses?

Override or extend the styles applied to the component.

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

If true, the item is disabled.

Link copied to clipboard
abstract var disableSelection: Boolean?

If true, the item cannot be selected.

Link copied to clipboard
abstract var id: ElementId?

The id attribute of the item. If not provided, it will be generated.

Link copied to clipboard
abstract var itemId: String

The id of the item. Must be unique.

Link copied to clipboard
abstract var key: Key?
Link copied to clipboard
abstract var label: ReactNode?

The label of the item.

Link copied to clipboard
abstract var onBlur: Any?

Callback fired when the item root is blurred.

Link copied to clipboard

This prop isn't supported. Use the onItemFocus callback on the tree if you need to monitor an item's focus.

Link copied to clipboard

Callback fired when a key is pressed on the keyboard and the tree is in focus.

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

The props used for each component slot.

Link copied to clipboard
abstract var slots: TreeItemSlots?

Overridable component slots.

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

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

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