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

Buttons

Buttons let users run actions and commands such as save, create, edit, delete, open, filter, download, confirm, or cancel. Use a real button for actions and an anchor with ngsButton only when the control navigates to another URL.

Choose a variant by emphasis:
  • Filled: Primary action on a screen, form, dialog, or toolbar.
  • Outlined: Secondary action that still needs clear visibility.
  • Tonal: Softer secondary action or neutral command.
  • Text: Low-emphasis action inside dense UI or supporting controls.
  • Icon button: Compact action with an icon only. Always provide an accessible label.

Do not use Button for sidebar navigation, menu items, tabs, toggle groups, checkboxes, radios, selects, or plain links inside text. Use the matching navigation or form component instead.

PropTypeDefault
ngsButton
The variant of the button
ButtonVariant'text'
ngsIconButton
Whether the button is an icon button
booleanfalse
loading
Whether the button is in a loading state
booleanfalse
disabled
Whether the button is disabled
booleanfalse
disabledInteractive
Whether the button remains focusable when disabled (e.g. for tooltips)
booleanfalse
disableRipple
Whether the ripple effect is disabled
booleanfalse
reverse
Whether to reverse the order of icon and text
booleanfalse
fullWidth
Whether the button should take up the full width of its container
booleanfalse
hideTextOnMobile
Whether to hide the button text on mobile devices
booleanfalse