Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Command Bar

Command Bar is a floating action bar for contextual commands on the current page state. Use it when users select rows, files, cards, objects, or other items and need quick actions such as edit, delete, archive, move, export, or share.

Use it for:
  • Showing a short context label, such as 2 selected.
  • Presenting compact actions for the selected items or active context.
  • Grouping related actions with ngs-command-bar-divider.
  • Showing optional shortcut hints on individual commands.

Do not use Command Bar as a command palette, search UI, dropdown menu, header toolbar, navigation bar, autocomplete, or normal form action row. It is for contextual actions that appear only when a page or region has an active selection or temporary command state.

ngs-command-bar - the root component of the command bar. This component manages the state of the command bar.

PropTypeDefault
open
Whether to open (show) command bar.
boolean
position
CommandBarPosition: top | bottombottom

ngs-command-bar-divider - the divider component of the command bar. This component is used to display a separator between commands.

ngs-command-bar-command - the command component of the command bar. This component is used to display a command, as well as registering the keyboard shortcut.

PropTypeDefault
shortcut
The command's shortcut.
string