Skip to content

Tool Bar

<tpg-tool-bar></tpg-tool-bar>

The primary function of the Tool Bar is to provide a set of filtering options to the user while displaying a list of items on the same screen. This helps the user to quickly get a sense of what data is available and enables them to refine their search without having to navigate to a separate page.

Filter bars typically display a set of dropdown menus that allow users to narrow down their search criteria based on the properties of the data set. These dropdown menus can be populated based on the data’s attributes such as its category, location, date or alphabetical order.

The default slot is typically used with a badge, quaternary button or text and badge.

Examples

Tables

Properties

Attribute Property Description Type Default Value
type type Handles which variant to render. ToolBarType 'badge'

Events

Event name Reactjs attribute Description
tpg-select-event ontpg-select-event Triggered when user selects an element in the menu.

Functions

Name Description Arguments
No functions found.

Slots

Name Description
Default slot reserved for badge, quatenrary button or text and badge
trailing-content Slot reserved for trailing content
menu Slot reserved for a tpg-menu-item.

CSS Parts

Attribute Description
No CSS parts found.

Sandbox