Properties

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

The content of the component.

Link copied to clipboard
abstract external var classes: TreeItemClasses?

Override or extend the styles applied to the component.

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

If true, the item is disabled.

Link copied to clipboard
abstract external var disableSelection: Boolean?

If true, the item cannot be selected.

Link copied to clipboard
abstract external var id: ElementId?

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

Link copied to clipboard
abstract external var itemId: String

The id of the item. Must be unique.

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

The label of the item.

Link copied to clipboard
abstract external var onBlur: Any?

Callback fired when the item root is blurred.

Link copied to clipboard
abstract external var onFocus: FocusEventHandler<HTMLLIElement>?

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 external var rootRef: Ref<HTMLLIElement>?
Link copied to clipboard
abstract external var slotProps: TreeItemSlotProps?

The props used for each component slot.

Link copied to clipboard
abstract external var slots: TreeItemSlots?

Overridable component slots.

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.

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