NG Kit

Edit Button

The Edit Button triggers editing of content, styled with an edit (pencil) icon. It extends the Base Button and is accessible out of the box.

Usage

Use the button through its directive selector on any element (for example, primaryButton on a <button>).

html
<button ariaLabel="Edit item" (click)="onEdit()" editButton mat-raised-button>Edit</button>

API

The default edit button, extending the base button. All other base inputs and outputs are inherited.

Inputs

NameTypeDefaultDescription
labelstring'Edit'Button label text.
iconstring'edit'Material icon name rendered before the label.
classesstring'primary-button'CSS classes applied to the button.