Skip to content

Nav Item components

Simple helpers around dmc menu related components.

Action item

A navbar action item (i.e. icon button without a menu). These can be opened in a new tab & can have callbacks associated with the id provided.

Mandatory Attributes are:

  • id: the action item component id
  • label: the action item label
  • icon: the action item icon
  • href: the url reference (either internal or external) on which to redirect on click.

Rendering:

Action item

An example of such a component in a dash application

Component to create a navbar menu item.

Mandatory Attributes are:

  • label: the action item label
  • icon: the action item icon
  • href: the url reference (either internal or external) on which to redirect on click.

Menu item

An example of such a component in a dash application

Component to create a navbar menu. The menu items must be created beforehand & passed to this component.

Mandatory Attributes are:

  • label: the action item label
  • icon: the action item icon
  • menu_items: the menu items (as defined in the previous section)

Menu

An example of such a component in a dash application