@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
16 lines (15 loc) • 897 B
JavaScript
'use client';
import { withWebComponent } from '@ui5/webcomponents-react-base';
/**
* The `TreeItem` represents a node in a tree structure, shown as a `List`.
*
* This is the item to use inside a `Tree`.
* You can represent an arbitrary tree structure by recursively nesting tree items.
*
*
*
* __Note:__ This is a UI5 Web Component! [TreeItem UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/TreeItem) | [Repository](https://github.com/UI5/webcomponents)
*/
const TreeItem = withWebComponent('ui5-tree-item', ['accessibilityAttributes', 'accessibleName', 'accessibleRole', 'additionalText', 'additionalTextState', 'highlight', 'icon', 'text', 'tooltip', 'type'], ['expanded', 'hasChildren', 'indeterminate', 'movable', 'navigated', 'selected'], ['deleteButton', 'image'], ['click', 'detail-click']);
TreeItem.displayName = 'TreeItem';
export { TreeItem };