Type: Package
Title: 'MUI X Tree View' for 'shiny' Apps and 'Quarto'
Version: 0.1.1
Maintainer: Felix Luginbuhl <felix.luginbuhl@protonmail.ch>
Description: Give access to 'MUI X Tree View' components, which lets users navigate hierarchical lists of data with nested levels that can be expanded and collapsed.
License: MIT + file LICENSE
Encoding: UTF-8
Imports: htmltools, shiny.react (≥ 0.4.0)
Suggests: shiny, testthat (≥ 3.0.0)
RoxygenNote: 7.3.3
URL: https://felixluginbuhl.com/muiTreeView/
BugReports: https://github.com/lgnbhl/muiTreeView/issues
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-01-21 14:19:20 UTC; felix
Author: Felix Luginbuhl [aut, cre]
Repository: CRAN
Date/Publication: 2026-01-26 16:30: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.


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.


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.


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.


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

HTML dependency object.


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

mirror server hosted at Truenetwork, Russian Federation.