The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Package {muiTreeView}


Type: Package
Title: 'MUI X Tree View' for 'shiny' Apps and 'Quarto'
Version: 0.2.0
Description: Wraps the 'MUI X Tree View' React components https://mui.com/x/react-tree-view/ for use in 'shiny' applications and 'quarto' documents, letting users navigate hierarchical data with nested levels that can be expanded and collapsed. Bundles the MIT-licensed community edition of the '@mui/x-tree-view' JavaScript library (the commercial 'Pro' tier is not included).
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-US
Depends: R (≥ 4.1)
Imports: muiMaterial (≥ 0.2.1), htmltools, shiny.react (≥ 0.4.0), utils
Suggests: shiny, testthat (≥ 3.0.0)
RoxygenNote: 7.3.3
URL: https://felixluginbuhl.com/muiTreeView/, https://github.com/lgnbhl/muiTreeView
BugReports: https://github.com/lgnbhl/muiTreeView/issues
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-10-12 16:14:39 UTC; felix
Author: Felix Luginbuhl ORCID iD [aut, cre, cph], MUI [cph] (Copyright holder of the bundled '@mui/x-tree-view', '@mui/x-internals', '@base-ui/utils' and '@mui/system' (subpath imports) JavaScript libraries; see LICENSE.note), Meta Platforms, Inc. and affiliates [cph] (Copyright holder of the bundled 'react-is', 'prop-types' and 'use-sync-external-store' JavaScript libraries; 'react' and 'react-dom' are declared as peer dependencies and provided at runtime by 'shiny.react'), React Community [cph] (Copyright holder of the bundled 'react-transition-group' JavaScript library; see LICENSE.note), Luke Edwards [cph] (Copyright holder of the bundled 'clsx' JavaScript library; see LICENSE.note), Reselect contributors [cph] (Copyright holder of the bundled 'reselect' JavaScript library; see LICENSE.note)
Maintainer: Felix Luginbuhl <felix.luginbuhl@protonmail.ch>
Repository: CRAN
Date/Publication: 2026-10-12 16:40:02 UTC

RichTreeView

Description

https://mui.com/x/api/tree-view/rich-tree-view/

Usage

RichTreeView(...)

Arguments

...

Props to pass to the component.

Details

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


RichTreeViewRoot

Description

Styled root element of RichTreeView(). See https://mui.com/x/react-tree-view/rich-tree-view/customization/.

Usage

RichTreeViewRoot(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


SimpleTreeView

Description

https://mui.com/x/api/tree-view/simple-tree-view/

Usage

SimpleTreeView(...)

Arguments

...

Props to pass to the component.

Details

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


SimpleTreeViewRoot

Description

Styled root element of SimpleTreeView(). See https://mui.com/x/react-tree-view/simple-tree-view/customization/.

Usage

SimpleTreeViewRoot(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItem

Description

https://mui.com/x/api/tree-view/tree-item/

Usage

TreeItem(...)

Arguments

...

Props to pass to the component.

Details

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemCheckbox

Description

Checkbox slot of a tree item, rendered when checkboxSelection = TRUE. Building block for customizing TreeItem(). See https://mui.com/x/react-tree-view/tree-item-customization/.

Usage

TreeItemCheckbox(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemContent

Description

Content slot of a tree item (the clickable row). Building block for customizing TreeItem(). See https://mui.com/x/react-tree-view/tree-item-customization/.

Usage

TreeItemContent(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemGroupTransition

Description

Transition slot wrapping the children of a tree item. Building block for customizing TreeItem(). See https://mui.com/x/react-tree-view/tree-item-customization/.

Usage

TreeItemGroupTransition(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemIcon

Description

https://mui.com/x/api/tree-view/tree-item-icon/

Usage

TreeItemIcon(...)

Arguments

...

Props to pass to the component.

Details

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemIconContainer

Description

Icon container slot of a tree item (expand/collapse icon). Building block for customizing TreeItem(). See https://mui.com/x/react-tree-view/tree-item-customization/.

Usage

TreeItemIconContainer(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemLabel

Description

Label slot of a tree item. Building block for customizing TreeItem(). See https://mui.com/x/react-tree-view/tree-item-customization/.

Usage

TreeItemLabel(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemLabelInput

Description

Input rendered in place of the label when label editing is enabled with isItemEditable. See https://mui.com/x/react-tree-view/rich-tree-view/editing/.

Usage

TreeItemLabelInput(...)

Arguments

...

Props to pass to the component.

Details

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemProvider

Description

https://mui.com/x/api/tree-view/tree-item-provider/

Provides the context of a tree item when building a custom tree item.

Usage

TreeItemProvider(...)

Arguments

...

Props to pass to the component.

Details

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeItemRoot

Description

Root slot of a tree item. Building block for customizing TreeItem(). See https://mui.com/x/react-tree-view/tree-item-customization/.

Usage

TreeItemRoot(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeViewCollapseIcon

Description

Default icon shown on expanded items (click to collapse). See https://mui.com/x/react-tree-view/rich-tree-view/customization/.

Usage

TreeViewCollapseIcon(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


TreeViewExpandIcon

Description

Default icon shown on collapsed items (click to expand). See https://mui.com/x/react-tree-view/rich-tree-view/customization/.

Usage

TreeViewExpandIcon(...)

Arguments

...

Props to pass to the component.

Value

Object with shiny.tag class suitable for use in the UI of a Shiny app.


Create choice structure for [RichTreeView()]

Description

This function is adapted from 'shinyWidgets::create_tree()'. A big thank you to the authors of the shinyWidgets for creating the 'create_tree()' function.

Usage

asMuiTree(data, levels = names(data), levels_id = NULL, ...)

Arguments

data

A 'data.frame'.

levels

Variables identifying hierarchical levels, values of those variables will be used as text displayed.

levels_id

Variable to use as ID for nodes. Careful! Spaces are not allowed in IDs.

...

Addtional arguments.

Value

a 'list' that can be used in [RichTreeView()].

See Also

'shinyWidgets::create_tree()'


Documentation template for remaining components

Description

Documentation template for remaining components

Arguments

...

Props to pass to the component. The allowed props are listed below in the Details section.

Value

Object with 'shiny.tag' class suitable for use in the UI of a Shiny app.


Mui X Tree View JS dependency

Description

Mui X Tree View JS dependency

Usage

muiTreeViewDependency()

Value

A list of HTML dependency objects (htmltools::htmlDependency) that load the bundled MUI X Tree View JavaScript and its shared MUI Material runtime. The muiMaterial dependency is listed first so its bundle (which provides react, react-dom, @mui/material, @mui/system and the emotion runtime that the tree view consumes as externals) loads before the tree view script. Attach it to custom HTML when building a tree view by hand.

Examples

# Inspect the dependencies attached to every muiTreeView element.
muiTreeViewDependency()


Print muiTreeView components

Description

When called interactively, renders the component in the IDE viewer panel. Otherwise, falls back to standard shiny.tag printing (raw HTML text).

Usage

## S3 method for class 'muiTreeView'
print(x, browse = interactive(), ...)

Arguments

x

A muiTreeView object (also inherits shiny.tag).

browse

Whether to render in viewer. Defaults to TRUE in interactive sessions.

...

Additional arguments passed to print.

Value

Invisibly returns x.

Examples

tree <- RichTreeView(
  items = list(list(id = "1", label = "Item"))
)
# browse = FALSE prints the underlying HTML instead of opening the viewer.
print(tree, browse = FALSE)


Objects exported from other packages

Description

These objects are imported from other packages. Follow the links below to see their documentation.

shiny.react

JS, reactOutput, renderReact, setInput, triggerEvent


Documentation template for components with '.shinyInput' wrappers

Description

Documentation template for components with '.shinyInput' wrappers

Arguments

inputId

ID of the component.

value

Starting value.

session

Object passed as the 'session' argument to Shiny server.

...

Props to pass to the component. The allowed props are listed below in the Details section.

Value

Object with 'shiny.tag' class suitable for use in the UI of a Shiny app. The update functions return nothing (called for side effects).

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.