Aller au contenu principal

Shared UI Component Library

Reusable UI components available across the Gauzy webapp.

Core Components

Avatar Component

<ga-avatar [src]="user.imageUrl" [name]="user.name" [size]="40"></ga-avatar>

Status Badge

<ga-status-badge [status]="task.status" [type]="'task'"></ga-status-badge>

Date Picker

<ga-date-range-picker
[start]="startDate"
[end]="endDate"
(dateChange)="onDateChange($event)"
>
</ga-date-range-picker>

Confirmation Dialog

this.dialogService
.open(ConfirmComponent, {
context: {
title: "Delete Task",
message: "Are you sure you want to delete this task?",
},
})
.onClose.subscribe((confirmed) => {
if (confirmed) this.deleteTask();
});

Tags Input

<ga-tags-input
[tags]="selectedTags"
[availableTags]="allTags"
(tagsChange)="onTagsChange($event)"
>
</ga-tags-input>

Layout Components

ComponentDescription
PageHeaderPage title with breadcrumbs
EmptyStateNo-data placeholder
LoadingSpinnerLoading indicator
SidebarCollapsible sidebar
ActionBarTop action buttons bar

Form Components

ComponentDescription
SelectEmployeeEmployee picker dropdown
SelectProjectProject picker
SelectOrgOrganization selector
CurrencyInputAmount + currency input
RichTextEditorQuill-based rich text