Skip to content
Twentyfirst UIHalo

Tree View

Foundations · ContextMenu, InlineEdit, KeyValue, TreeView

Hierarchies, in-place editing and object menus: TreeView, InlineEdit, ContextMenu.

TreeView: items ({id, label, icon, meta, children}), defaultOpen (ids), selected + onSelect, label. Arrow keys open, close and move; meta sits right in mono.
InlineEdit: value, onSave(v), options (select instead of text), mono, type, display(v), align. Double-click or Enter edits, Enter saves, Esc cancels.
ContextMenu: items (Menu items), children (the target). Right-click or a long press opens it at the pointer; destructive actions last.

  • FollowerX GmbH€48,210
    • Northwind€31,400
      • Ads€9,800
      • SMM providers€14,100
    • Chatteo€12,610
  • Trepte Ventures UG€4,200
Double-click or Enter to edit
Category
Software
Amount
1,240.00
Right-click or long-press here

Props

ContextMenu

PropTypeNotes
items(MenuItem | "-")[]Required
childrenReactNodeRequired
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

InlineEdit

PropTypeNotes
valuestringRequired
onSave?(v: string) => void
options?string[]
mono?boolean
type?string
display?(v: string) => ReactNode
align?"left" | "right"
label?string
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

KeyValue

PropTypeNotes
itemsKeyValueItem[]Required
dense?boolean
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

TreeView

PropTypeNotes
itemsTreeItem[]Required
defaultOpen?string[]
selected?string
onSelect?(id: string) => void
label?string
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.