갤러리
갤러리 (Galleria)
Galleria는 이미지를 세련되게 보여주는 고급 콘텐츠 갤러리 컴포넌트예요. 썸네일, 캡션, 자동 재생, 전체 화면 모드 같은 기능을 기본으로 제공하고, 인디케이터나 탐색 버튼도 원하는 대로 구성할 수 있어요. 스크린 리더와 키보드 탐색을 위한 접근성 지원까지 갖춰져 있어서 누구나 쓰기 편한 갤러리를 만들 수 있어요. 기본 사용법부터 Props·Emits·Templates 같은 API와 CSS 디자인 토큰을 활용한 테마 설정까지 이 문서에서 확인해 보세요
출처: 문서
본문
접근성
스크린 리더 Galleria는 region role을 사용하는데, 모든 속성이 메인 컨테이너 요소에 전달되기 때문에 aria-label과 aria-roledescription 같은 속성도 함께 사용할 수 있어요. 슬라이드 컨테이너는 galleria가 자동 재생 모드가 아닐 때 aria-live 속성이 "polite"로 설정되고, 자동 재생 중일 때는 "off" 값이 돼요. 각 슬라이드는 locale API의 aria.slideNumber 속성을 참조하는 aria-label과 함께 group role을 가져요. 마찬가지로 aria.slide가 항목의 aria-roledescription으로 사용돼요. 활성화되지 않은 슬라이드는 aria-hidden으로 스크린 리더에게 숨겨져요. Next와 Previous 네비게이터는 기본적으로 각각 locale API의 aria.nextPageLabel과 aria.firstPageLabel 속성을 참조하는 aria-label 속성을 가진 button 요소예요. nextButtonProps와 prevButtonProps를 사용하면 유효한 속성이 button 요소에 암묵적으로 전달되기 때문에 여러분만의 aria role과 속성을 그대로 사용할 수도 있어요. 빠른 탐색 요소와 썸네일은 tab 패턴을 따라요. 이 요소들은 tablist role을 가진 요소 안에 배치되고, 각 항목은 aria-selected와 aria-controls 속성을 가진 tab role을 가져요. 빠른 탐색 항목의 aria-label 속성은 locale API의 aria.pageLabel을 참조해요. 현재 페이지는 aria-current로 표시돼요. 전체 화면 모드에서는 모달 요소가 aria-modal이 활성화된 dialog role을 사용해요. 닫기 버튼은 locale API의 aria.close 속성에서 aria-label을 가져와요. Next/Prev 키보드 지원 키 기능 tab 캐러셀의 대화형 요소들 사이에서 포커스를 이동해요. enter 탐색을 활성화해요. space 탐색을 활성화해요. 빠른 탐색 키보드 지원 키 기능 tab 활성 슬라이드 링크 사이에서 포커스를 이동해요. enter 포커스된 슬라이드 링크를 활성화해요. space 포커스된 슬라이드 링크를 활성화해요. right arrow 다음 슬라이드 링크로 포커스를 이동해요. left arrow 이전 슬라이드 링크로 포커스를 이동해요. home 첫 번째 슬라이드 링크로 포커스를 이동해요. end 마지막 슬라이드 링크로 포커스를 이동해요.
고급
Galleria는 복잡한 요구 사항을 구현할 수 있도록 더 확장할 수 있어요.
import { Component, OnInit, inject, signal } from '@angular/core';
import { GalleriaModule } from 'primeng/galleria';
import { ButtonModule } from 'primeng/button';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<p-galleria
#galleria
[(value)]="images"
[(activeIndex)]="activeIndex"
[numVisible]="5"
[showThumbnails]="showThumbnails"
[showItemNavigators]="true"
[showItemNavigatorsOnHover]="true"
[circular]="true"
[autoPlay]="isAutoPlay"
[transitionInterval]="3000"
[containerStyle]="{ 'max-width': '640px' }"
[pt]="galleriaPT"
>
<ng-template #item let-item>
<img [src]="item.itemImageSrc" [ngStyle]="{ width: !fullscreen ? '100%' : '', display: !fullscreen ? 'block' : '' }" />
</ng-template>
<ng-template #thumbnail let-item>
<div class="grid gap-4 justify-center">
<img [src]="item.thumbnailImageSrc" style="display: block" />
</div>
</ng-template>
<ng-template #footer let-item>
<div class="flex items-stretch gap-2 bg-surface-950 text-white h-10">
<button
type="button"
pButton
icon="pi pi-th-large"
(click)="onThumbnailButtonClick()"
class="bg-transparent border-none rounded-none hover:bg-white/10 text-white inline-flex justify-center items-center cursor-pointer px-3"
></button>
<button
type="button"
pButton
[icon]="slideButtonIcon()"
(click)="toggleAutoSlide()"
class="bg-transparent border-none rounded-none hover:bg-white/10 text-white inline-flex justify-center items-center cursor-pointer px-3"
></button>
<span *ngIf="images()" class="flex items-center gap-4 ml-3">
<span class="text-sm">{{ activeIndex + 1 }}/{{ images().length }}</span>
<span class="font-bold text-sm">{{ images()[activeIndex].title }}</span>
<span class="text-sm">{{ images()[activeIndex].alt }}</span>
</span>
<button
type="button"
pButton
[icon]="fullScreenIcon()"
(click)="toggleFullScreen()"
class="bg-transparent border-none rounded-none hover:bg-white/10 text-white inline-flex justify-center items-center cursor-pointer px-3 ml-auto"
></button>
</div>
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [GalleriaModule, ButtonModule],
providers: [PhotoService]
})
export class GalleriaAdvancedDemo implements OnInit {
private photoService = inject(PhotoService);
images = signal<any[]>([]);
showThumbnails: boolean = false;
fullscreen: boolean = false;
activeIndex: number = 0;
isAutoPlay: boolean = true;
onFullScreenListener: any;
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => {
this.images.set(images);
});
this.bindDocumentListeners();
}
onThumbnailButtonClick() {
this.showThumbnails = !this.showThumbnails;
}
toggleAutoSlide() {
this.isAutoPlay = !this.isAutoPlay;
}
toggleFullScreen() {
if (this.fullscreen) {
this.closePreviewFullScreen();
} else {
this.openPreviewFullScreen();
}
}
openPreviewFullScreen() {
let elem = this.galleria?.element.nativeElement.querySelector('.p-galleria');
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem['mozRequestFullScreen']) {
/* Firefox */
elem['mozRequestFullScreen']();
} else if (elem['webkitRequestFullscreen']) {
/* Chrome, Safari & Opera */
elem['webkitRequestFullscreen']();
} else if (elem['msRequestFullscreen']) {
/* IE/Edge */
elem['msRequestFullscreen']();
}
}
onFullScreenChange() {
this.fullscreen = !this.fullscreen;
}
closePreviewFullScreen() {
if (isPlatformBrowser(this.platformId)) {
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document['mozCancelFullScreen']) {
document['mozCancelFullScreen']();
} else if (document['webkitExitFullscreen']) {
document['webkitExitFullscreen']();
} else if (document['msExitFullscreen']) {
document['msExitFullscreen']();
}
}
}
bindDocumentListeners() {
if (isPlatformBrowser(this.platformId)) {
this.onFullScreenListener = this.onFullScreenChange.bind(this);
document.addEventListener('fullscreenchange', this.onFullScreenListener);
document.addEventListener('mozfullscreenchange', this.onFullScreenListener);
document.addEventListener('webkitfullscreenchange', this.onFullScreenListener);
document.addEventListener('msfullscreenchange', this.onFullScreenListener);
}
}
unbindDocumentListeners() {
if (isPlatformBrowser(this.platformId)) {
document.removeEventListener('fullscreenchange', this.onFullScreenListener);
document.removeEventListener('mozfullscreenchange', this.onFullScreenListener);
document.removeEventListener('webkitfullscreenchange', this.onFullScreenListener);
document.removeEventListener('msfullscreenchange', this.onFullScreenListener);
this.onFullScreenListener = null;
}
}
ngOnDestroy() {
this.unbindDocumentListeners();
}
slideButtonIcon() {
return this.isAutoPlay ? 'pi pi-pause' : 'pi pi-play';
}
fullScreenIcon() {
return `pi ${this.fullscreen ? 'pi-window-minimize' : 'pi-window-maximize'}`;
}
}
자동 재생
circular와 autoPlay 속성을 추가하면 슬라이드쇼 구현을 정의할 수 있어요.
import { Component, OnInit, inject } from '@angular/core';
import { GalleriaModule } from 'primeng/galleria';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<p-galleria [(value)]="images" [autoPlay]="true" [circular]="true" [responsiveOptions]="responsiveOptions" [numVisible]="5" [containerStyle]="{ 'max-width': '640px' }">
<ng-template #item let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block" />
</ng-template>
<ng-template #thumbnail let-item>
<img [src]="item.thumbnailImageSrc" style="display: block" />
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [GalleriaModule],
providers: [PhotoService]
})
export class GalleriaAutoplayDemo implements OnInit {
private photoService = inject(PhotoService);
images: any = model([]);
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => this.images.set(images));
}
}
기본
Galleria는 이미지 컬렉션인 value, 고해상도 이미지를 위한 item 템플릿, 그리고 썸네일로 표시하기 위한 thumbnail 템플릿이 필요해요.
import { Component, OnInit, inject } from '@angular/core';
import { GalleriaModule } from 'primeng/galleria';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<p-galleria [(value)]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5">
<ng-template #item let-item>
<img [src]="item.itemImageSrc" style="width:100%" />
</ng-template>
<ng-template #thumbnail let-item>
<img [src]="item.thumbnailImageSrc" />
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [GalleriaModule],
providers: [PhotoService]
})
export class GalleriaBasicDemo implements OnInit {
private photoService = inject(PhotoService);
images: any = model([]);
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => this.images.set(images));
}
}
캡션
이미지에 대한 설명은 caption 템플릿으로 지정해요.
import { Component, OnInit, inject } from '@angular/core';
import { GalleriaModule } from 'primeng/galleria';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<p-galleria [(value)]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5">
<ng-template #item let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
</ng-template>
<ng-template #thumbnail let-item>
<img [src]="item.thumbnailImageSrc" style="display: block;" />
</ng-template>
<ng-template #caption let-item>
<div class="text-xl mb-2 font-bold">{{ item.title }}</div>
<p class="text-white">{{ item.alt }}</p>
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [GalleriaModule],
providers: [PhotoService]
})
export class GalleriaCaptionDemo implements OnInit {
private photoService = inject(PhotoService);
images: any = model([]);
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => this.images.set(images));
}
}
제어
Galleria는 activeIndex 속성을 사용해 프로그래밍 방식으로 제어할 수 있어요.
import { Component, OnInit, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { GalleriaModule } from 'primeng/galleria';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<div class="mb-4">
<p-button type="button" icon="pi pi-minus" (click)="prev()" />
<p-button type="button" icon="pi pi-plus" (click)="next()" severity="secondary" styleClass="ml-2" />
</div>
<p-galleria [(value)]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5" [(activeIndex)]="activeIndex">
<ng-template #item let-item>
<img [src]="item.itemImageSrc" style="width: 100%;" />
</ng-template>
<ng-template #thumbnail let-item>
<img [src]="item.thumbnailImageSrc" />
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [ButtonModule, GalleriaModule],
providers: [PhotoService]
})
export class GalleriaControlledDemo implements OnInit {
private photoService = inject(PhotoService);
images: any = model([]);
_activeIndex: number = 2;
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => this.images.set(images));
}
next() {
this.activeIndex++;
}
prev() {
this.activeIndex--;
}
}
반응형
Galleria의 반응형 동작은 responsiveOptions 속성으로 정의해요.
import { Component, OnInit, inject } from '@angular/core';
import { GalleriaModule } from 'primeng/galleria';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<p-galleria [(value)]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="7" [circular]="true">
<ng-template #item let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
</ng-template>
<ng-template #thumbnail let-item>
<img [src]="item.thumbnailImageSrc" style="width: 100%; display: block;" />
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [GalleriaModule],
providers: [PhotoService]
})
export class GalleriaResponsiveDemo implements OnInit {
private photoService = inject(PhotoService);
images: any = model([]);
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => this.images.set(images));
}
}
썸네일
Galleria는 activeIndex 속성을 사용해 프로그래밍 방식으로 제어할 수 있어요.
import { Component, OnInit, inject, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { GalleriaModule } from 'primeng/galleria';
import { RadioButtonModule } from 'primeng/radiobutton';
import { PhotoService } from '@/service/photoservice';
@Component({
template: `
<div class="card">
<div class="flex flex-wrap gap-4 mb-8">
<div *ngFor="let option of positionOptions" class="flex items-center">
<p-radiobutton [name]="option.label" [value]="option.value" [label]="option.label" [(ngModel)]="position" [inputId]="option.label" />
<label [for]="option.label" class="ml-2"> {{ option.label }} </label>
</div>
</div>
<p-galleria [value]="images()" [thumbnailsPosition]="position" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5">
<ng-template #item let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block" />
</ng-template>
<ng-template #thumbnail let-item>
<div class="grid gap-4 justify-center">
<img [src]="item.thumbnailImageSrc" style="width: 100%; display: block" />
</div>
</ng-template>
</p-galleria>
</div>
`,
standalone: true,
imports: [GalleriaModule, RadioButtonModule, FormsModule],
providers: [PhotoService]
})
export class GalleriaThumbnailDemo implements OnInit {
private photoService = inject(PhotoService);
images = signal<any[]>([]);
positionOptions: any[];
responsiveOptions: any[];
ngOnInit() {
this.photoService.getImages().then((images) => this.images.set(images));
}
}
Galleria
Galleria는 고급 콘텐츠 갤러리 컴포넌트예요.
프로퍼티
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| dt | InputSignal | undefined | 컴포넌트의 스코프 디자인 토큰을 정의해요. |
| unstyled | InputSignal | undefined | 컴포넌트를 스타일 없이 렌더링할지 여부를 나타내요. |
| pt | InputSignal | undefined | 컴포넌트 내부의 DOM 요소에 속성을 전달하는 데 사용해요. |
| ptOptions | InputSignal | undefined | 컴포넌트의 패스스루(pt) 옵션을 구성하는 데 사용해요. |
| activeIndex | number | - | 첫 번째 아이템의 인덱스예요. |
| fullScreen | boolean | false | 컴포넌트를 전체 화면으로 표시할지 여부예요. |
| id | string | - | 요소의 고유 식별자예요. |
| value | any[] | - | 표시할 객체 배열이에요. |
| numVisible | number | 3 | 페이지당 아이템 수예요. |
| responsiveOptions | GalleriaResponsiveOptions[] | - | 반응형 디자인을 위한 옵션 배열이에요. |
| showItemNavigators | boolean | false | 아이템 영역에 내비게이션 버튼을 표시할지 여부예요. |
| showThumbnailNavigators | boolean | true | 썸네일 컨테이너에 내비게이션 버튼을 표시할지 여부예요. |
| showItemNavigatorsOnHover | boolean | false | 아이템에 호버했을 때 내비게이션 버튼을 표시할지 여부예요. |
| changeItemOnIndicatorHover | boolean | false | 활성화하면 인디케이터에 호버했을 때 아이템이 변경돼요. |
| circular | boolean | false | 스크롤이 무한으로 이어지는지 정의해요. |
| autoPlay | boolean | false | autoPlay 모드에서는 아이템이 슬라이드쇼로 표시돼요. |
| shouldStopAutoplayByClick | boolean | true | 활성화하면 클릭으로 자동 실행을 멈출 수 있어요. |
| transitionInterval | number | 4000 | 아이템을 스크롤하는 시간(밀리초)이에요. |
| showThumbnails | boolean | true | 썸네일 컨테이너를 표시할지 여부예요. |
| thumbnailsPosition | "right" | "left" | "top" | "bottom" | bottom | 썸네일의 위치예요. |
| verticalThumbnailViewPortHeight | string | 300px | 세로 썸네일에서 뷰포트의 높이예요. |
| showIndicators | boolean | false | 인디케이터 컨테이너를 표시할지 여부예요. |
| showIndicatorsOnItem | boolean | false | 활성화하면 아이템 컨테이너 위에 인디케이터 컨테이너가 표시돼요. |
| indicatorsPosition | "right" | "left" | "top" | "bottom" | bottom | 인디케이터의 위치예요. |
| baseZIndex | number | 0 | 레이어링에 사용할 기본 zIndex 값이에요. |
| maskClass | string | - | 전체 화면 모드에서 마스크의 스타일 클래스예요. |
| containerClass | string | - | 전체 화면 모드에서 컴포넌트의 스타일 클래스예요. 그 외의 경우에는 'class' 속성을 사용할 수 있어요. |
| containerStyle | { [klass: string]: any } | - | 전체 화면 모드에서 컴포넌트의 인라인 스타일이에요. 그 외의 경우에는 'style' 속성을 사용할 수 있어요. |
| showTransitionOptions | string | 150ms cubic-bezier(0, 0, 0.2, 1) | 표시 애니메이션의 트랜지션 옵션이에요. (지원 중단) |
| hideTransitionOptions | string | 150ms cubic-bezier(0, 0, 0.2, 1) | 숨김 애니메이션의 트랜지션 옵션이에요. (지원 중단) |
| motionOptions | InputSignal | ... | 모션 옵션이에요. |
| maskMotionOptions | InputSignal | ... | 마스크 모션 옵션이에요. |
| visible | boolean | - | 전체 화면 모드에서 마스크의 표시 여부를 지정해요. |
이벤트
| 이름 | 파라미터 | 설명 |
|---|---|---|
| activeIndexChange | value: number | 활성 인덱스가 변경될 때 호출되는 콜백이에요. |
| visibleChange | value: boolean | 표시 여부가 변경될 때 호출되는 콜백이에요. |
템플릿
| 이름 | 타입 | 설명 |
|---|---|---|
| header | TemplateRef | 커스텀 헤더 템플릿이에요. |
| footer | TemplateRef | 커스텀 푸터 템플릿이에요. |
| indicator | TemplateRef | 커스텀 인디케이터 템플릿이에요. |
| caption | TemplateRef<GalleriaCaptionTemplateContext> | 커스텀 캡션 템플릿이에요. |
| _closeicon | TemplateRef | 커스텀 닫기 아이콘 템플릿이에요. |
| _previousthumbnailicon | TemplateRef | 커스텀 이전 썸네일 아이콘 템플릿이에요. |
| _nextthumbnailicon | TemplateRef | 커스텀 다음 썸네일 아이콘 템플릿이에요. |
| _itempreviousicon | TemplateRef | 커스텀 아이템 이전 아이콘 템플릿이에요. |
| _itemnexticon | TemplateRef | 커스텀 아이템 다음 아이콘 템플릿이에요. |
| _item | TemplateRef<GalleriaItemTemplateContext> | 커스텀 아이템 템플릿이에요. |
| _thumbnail | TemplateRef<GalleriaThumbnailTemplateContext> | 커스텀 썸네일 템플릿이에요. |
패스스루 옵션
| 이름 | 타입 | 설명 |
|---|---|---|
| host | PassThroughOption<HTMLDivElement, I> | 호스트의 DOM 요소에 속성을 전달하는 데 사용해요. |
| root | PassThroughOption<HTMLDivElement, I> | 루트의 DOM 요소에 속성을 전달하는 데 사용해요. |
| mask | PassThroughOption<HTMLDivElement, I> | 마스크의 DOM 요소에 속성을 전달하는 데 사용해요. |
| closeButton | PassThroughOption<HTMLButtonElement, I> | 닫기 버튼의 DOM 요소에 속성을 전달하는 데 사용해요. |
| closeIcon | PassThroughOption<SVGElement, I> | 닫기 아이콘의 DOM 요소에 속성을 전달하는 데 사용해요. |
| header | PassThroughOption<HTMLDivElement, I> | 헤더의 DOM 요소에 속성을 전달하는 데 사용해요. |
| content | PassThroughOption<HTMLDivElement, I> | 콘텐츠의 DOM 요소에 속성을 전달하는 데 사용해요. |
| itemsContainer | PassThroughOption<HTMLDivElement, I> | 아이템 컨테이너의 DOM 요소에 속성을 전달하는 데 사용해요. |
| items | PassThroughOption<HTMLDivElement, I> | 아이템의 DOM 요소에 속성을 전달하는 데 사용해요. |
| prevButton | PassThroughOption<HTMLButtonElement, I> | 이전 버튼의 DOM 요소에 속성을 전달하는 데 사용해요. |
| prevIcon | PassThroughOption<SVGElement, I> | 이전 아이콘의 DOM 요소에 속성을 전달하는 데 사용해요. |
| item | PassThroughOption<HTMLDivElement, I> | 아이템의 DOM 요소에 속성을 전달하는 데 사용해요. |
| nextButton | PassThroughOption<HTMLButtonElement, I> | 다음 버튼의 DOM 요소에 속성을 전달하는 데 사용해요. |
| nextIcon | PassThroughOption<SVGElement, I> | 다음 아이콘의 DOM 요소에 속성을 전달하는 데 사용해요. |
| caption | PassThroughOption<HTMLDivElement, I> | 캡션의 DOM 요소에 속성을 전달하는 데 사용해요. |
| indicatorList | PassThroughOption<HTMLUListElement, I> | 인디케이터 리스트의 DOM 요소에 속성을 전달하는 데 사용해요. |
| indicator | PassThroughOption<HTMLLIElement, I> | 인디케이터의 DOM 요소에 속성을 전달하는 데 사용해요. |
| indicatorButton | PassThroughOption<HTMLButtonElement, I> | 인디케이터 버튼의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnails | PassThroughOption<HTMLDivElement, I> | 썸네일의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailContent | PassThroughOption<HTMLDivElement, I> | 썸네일 콘텐츠의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailPrevButton | PassThroughOption<HTMLButtonElement, I> | 썸네일 이전 버튼의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailPrevIcon | PassThroughOption<SVGElement, I> | 썸네일 이전 아이콘의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailsViewport | PassThroughOption<HTMLDivElement, I> | 썸네일 뷰포트의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailItems | PassThroughOption<HTMLDivElement, I> | 썸네일 아이템들의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailItem | PassThroughOption<HTMLDivElement, I> | 썸네일 아이템의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnail | PassThroughOption<HTMLDivElement, I> | 썸네일의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailNextButton | PassThroughOption<HTMLButtonElement, I> | 썸네일 다음 버튼의 DOM 요소에 속성을 전달하는 데 사용해요. |
| thumbnailNextIcon | PassThroughOption<SVGElement, I> | 썸네일 다음 아이콘의 DOM 요소에 속성을 전달하는 데 사용해요. |
| footer | PassThroughOption<HTMLDivElement, I> | 푸터의 DOM 요소에 속성을 전달하는 데 사용해요. |
| motion | MotionOptions | 모션 컴포넌트/디렉티브에 옵션을 전달하는 데 사용해요. |
테마
CSS 클래스
| 클래스 | 설명 |
|---|---|
| p-galleria-mask | 마스크 요소의 클래스 이름 |
| p-galleria | 루트 요소의 클래스 이름 |
| p-galleria-close-button | 닫기 버튼 요소의 클래스 이름 |
| p-galleria-close-icon | 닫기 아이콘 요소의 클래스 이름 |
| p-galleria-header | 헤더 요소의 클래스 이름 |
| p-galleria-content | 콘텐츠 요소의 클래스 이름 |
| p-galleria-footer | 푸터 요소의 클래스 이름 |
| p-galleria-items-container | 아이템 컨테이너 요소의 클래스 이름 |
| p-galleria-items | 아이템 목록 요소의 클래스 이름 |
| p-galleria-prev-button | 이전 아이템 버튼 요소의 클래스 이름 |
| p-galleria-prev-icon | 이전 아이템 아이콘 요소의 클래스 이름 |
| p-galleria-item | 아이템 요소의 클래스 이름 |
| p-galleria-next-button | 다음 아이템 버튼 요소의 클래스 이름 |
| p-galleria-next-icon | 다음 아이템 아이콘 요소의 클래스 이름 |
| p-galleria-caption | 캡션 요소의 클래스 이름 |
| p-galleria-indicator-list | 인디케이터 목록 요소의 클래스 이름 |
| p-galleria-indicator | 인디케이터 요소의 클래스 이름 |
| p-galleria-indicator-button | 인디케이터 버튼 요소의 클래스 이름 |
| p-galleria-thumbnails | 썸네일 목록 요소의 클래스 이름 |
| p-galleria-thumbnails-content | 썸네일 콘텐츠 요소의 클래스 이름 |
| p-galleria-thumbnail-prev-button | 이전 썸네일 버튼 요소의 클래스 이름 |
| p-galleria-thumbnail-prev-icon | 이전 썸네일 아이콘 요소의 클래스 이름 |
| p-galleria-thumbnails-viewport | 썸네일 뷰포트 요소의 클래스 이름 |
| p-galleria-thumbnail-items | 썸네일 아이템 목록 요소의 클래스 이름 |
| p-galleria-thumbnail-item | 썸네일 아이템 요소의 클래스 이름 |
| p-galleria-thumbnail | 썸네일 요소의 클래스 이름 |
| p-galleria-thumbnail-next-button | 다음 썸네일 버튼 요소의 클래스 이름 |
| p-galleria-thumbnail-next-icon | 다음 썸네일 아이콘 요소의 클래스 이름 |
디자인 토큰
| 토큰 | CSS 변수 | 설명 |
|---|---|---|
| galleria.border.width | --p-galleria-border-width | 루트의 테두리 두께 |
| galleria.border.color | --p-galleria-border-color | 루트의 테두리 색상 |
| galleria.border.radius | --p-galleria-border-radius | 루트의 테두리 반경 |
| galleria.transition.duration | --p-galleria-transition-duration | 루트의 전환 지속 시간 |
| galleria.nav.button.background | --p-galleria-nav-button-background | 내비게이션 버튼의 배경 |
| galleria.nav.button.hover.background | --p-galleria-nav-button-hover-background | 내비게이션 버튼의 호버 배경 |
| galleria.nav.button.color | --p-galleria-nav-button-color | 내비게이션 버튼의 색상 |
| galleria.nav.button.hover.color | --p-galleria-nav-button-hover-color | 내비게이션 버튼의 호버 색상 |
| galleria.nav.button.size | --p-galleria-nav-button-size | 내비게이션 버튼의 크기 |
| galleria.nav.button.gutter | --p-galleria-nav-button-gutter | 내비게이션 버튼의 거터 |
| galleria.nav.button.prev.border.radius | --p-galleria-nav-button-prev-border-radius | 이전 내비게이션 버튼의 테두리 반경 |
| galleria.nav.button.next.border.radius | --p-galleria-nav-button-next-border-radius | 다음 내비게이션 버튼의 테두리 반경 |
| galleria.nav.button.focus.ring.width | --p-galleria-nav-button-focus-ring-width | 내비게이션 버튼의 포커스 링 두께 |
| galleria.nav.button.focus.ring.style | --p-galleria-nav-button-focus-ring-style | 내비게이션 버튼의 포커스 링 스타일 |
| galleria.nav.button.focus.ring.color | --p-galleria-nav-button-focus-ring-color | 내비게이션 버튼의 포커스 링 색상 |
| galleria.nav.button.focus.ring.offset | --p-galleria-nav-button-focus-ring-offset | 내비게이션 버튼의 포커스 링 오프셋 |
| galleria.nav.button.focus.ring.shadow | --p-galleria-nav-button-focus-ring-shadow | 내비게이션 버튼의 포커스 링 그림자 |
| galleria.nav.icon.size | --p-galleria-nav-icon-size | 내비게이션 아이콘의 크기 |
| galleria.thumbnails.content.background | --p-galleria-thumbnails-content-background | 썸네일 콘텐츠의 배경 |
| galleria.thumbnails.content.padding | --p-galleria-thumbnails-content-padding | 썸네일 콘텐츠의 패딩 |
| galleria.thumbnail.nav.button.size | --p-galleria-thumbnail-nav-button-size | 썸네일 내비게이션 버튼의 크기 |
| galleria.thumbnail.nav.button.border.radius | --p-galleria-thumbnail-nav-button-border-radius | 썸네일 내비게이션 버튼의 테두리 반경 |
| galleria.thumbnail.nav.button.gutter | --p-galleria-thumbnail-nav-button-gutter | 썸네일 내비게이션 버튼의 거터 |
| galleria.thumbnail.nav.button.focus.ring.width | --p-galleria-thumbnail-nav-button-focus-ring-width | 썸네일 내비게이션 버튼의 포커스 링 두께 |
| galleria.thumbnail.nav.button.focus.ring.style | --p-galleria-thumbnail-nav-button-focus-ring-style | 썸네일 내비게이션 버튼의 포커스 링 스타일 |
| galleria.thumbnail.nav.button.focus.ring.color | --p-galleria-thumbnail-nav-button-focus-ring-color | 썸네일 내비게이션 버튼의 포커스 링 색상 |
| galleria.thumbnail.nav.button.focus.ring.offset | --p-galleria-thumbnail-nav-button-focus-ring-offset | 썸네일 내비게이션 버튼의 포커스 링 오프셋 |
| galleria.thumbnail.nav.button.focus.ring.shadow | --p-galleria-thumbnail-nav-button-focus-ring-shadow | 썸네일 내비게이션 버튼의 포커스 링 그림자 |
| galleria.thumbnail.nav.button.hover.background | --p-galleria-thumbnail-nav-button-hover-background | 썸네일 내비게이션 버튼의 호버 배경 |
| galleria.thumbnail.nav.button.color | --p-galleria-thumbnail-nav-button-color | 썸네일 내비게이션 버튼의 색상 |
| galleria.thumbnail.nav.button.hover.color | --p-galleria-thumbnail-nav-button-hover-color | 썸네일 내비게이션 버튼의 호버 색상 |
| galleria.thumbnail.nav.button.icon.size | --p-galleria-thumbnail-nav-button-icon-size | 썸네일 내비게이션 버튼 아이콘의 크기 |
| galleria.caption.background | --p-galleria-caption-background | 캡션의 배경 |
| galleria.caption.color | --p-galleria-caption-color | 캡션의 색상 |
| galleria.caption.padding | --p-galleria-caption-padding | 캡션의 패딩 |
| galleria.indicator.list.gap | --p-galleria-indicator-list-gap | 인디케이터 목록의 간격 |
| galleria.indicator.list.padding | --p-galleria-indicator-list-padding | 인디케이터 목록의 패딩 |
| galleria.indicator.button.width | --p-galleria-indicator-button-width | 인디케이터 버튼의 너비 |
| galleria.indicator.button.height | --p-galleria-indicator-button-height | 인디케이터 버튼의 높이 |
| galleria.indicator.button.active.background | --p-galleria-indicator-button-active-background | 인디케이터 버튼의 활성 배경 |
| galleria.indicator.button.border.radius | --p-galleria-indicator-button-border-radius | 인디케이터 버튼의 테두리 반경 |
| galleria.indicator.button.focus.ring.width | --p-galleria-indicator-button-focus-ring-width | 인디케이터 버튼의 포커스 링 두께 |
| galleria.indicator.button.focus.ring.style | --p-galleria-indicator-button-focus-ring-style | 인디케이터 버튼의 포커스 링 스타일 |
| galleria.indicator.button.focus.ring.color | --p-galleria-indicator-button-focus-ring-color | 인디케이터 버튼의 포커스 링 색상 |
| galleria.indicator.button.focus.ring.offset | --p-galleria-indicator-button-focus-ring-offset | 인디케이터 버튼의 포커스 링 오프셋 |
| galleria.indicator.button.focus.ring.shadow | --p-galleria-indicator-button-focus-ring-shadow | 인디케이터 버튼의 포커스 링 그림자 |
| galleria.indicator.button.background | --p-galleria-indicator-button-background | 인디케이터 버튼의 배경 |
| galleria.indicator.button.hover.background | --p-galleria-indicator-button-hover-background | 인디케이터 버튼의 호버 배경 |
| galleria.inset.indicator.list.background | --p-galleria-inset-indicator-list-background | 인셋 인디케이터 목록의 배경 |
| galleria.inset.indicator.button.background | --p-galleria-inset-indicator-button-background | 인셋 인디케이터 버튼의 배경 |
| galleria.inset.indicator.button.hover.background | --p-galleria-inset-indicator-button-hover-background | 인셋 인디케이터 버튼의 호버 배경 |
| galleria.inset.indicator.button.active.background | --p-galleria-inset-indicator-button-active-background | 인셋 인디케이터 버튼의 활성 배경 |
| galleria.close.button.size | --p-galleria-close-button-size | 닫기 버튼의 크기 |
| galleria.close.button.gutter | --p-galleria-close-button-gutter | 닫기 버튼의 거터 |
| galleria.close.button.background | --p-galleria-close-button-background | 닫기 버튼의 배경 |
| galleria.close.button.hover.background | --p-galleria-close-button-hover-background | 닫기 버튼의 호버 배경 |
| galleria.close.button.color | --p-galleria-close-button-color | 닫기 버튼의 색상 |
| galleria.close.button.hover.color | --p-galleria-close-button-hover-color | 닫기 버튼의 호버 색상 |
| galleria.close.button.border.radius | --p-galleria-close-button-border-radius | 닫기 버튼의 테두리 반경 |
| galleria.close.button.focus.ring.width | --p-galleria-close-button-focus-ring-width | 닫기 버튼의 포커스 링 두께 |
| galleria.close.button.focus.ring.style | --p-galleria-close-button-focus-ring-style | 닫기 버튼의 포커스 링 스타일 |
| galleria.close.button.focus.ring.color | --p-galleria-close-button-focus-ring-color | 닫기 버튼의 포커스 링 색상 |
| galleria.close.button.focus.ring.offset | --p-galleria-close-button-focus-ring-offset | 닫기 버튼의 포커스 링 오프셋 |
| galleria.close.button.focus.ring.shadow | --p-galleria-close-button-focus-ring-shadow | 닫기 버튼의 포커스 링 그림자 |
| galleria.close.button.icon.size | --p-galleria-close-button-icon-size | 닫기 버튼 아이콘의 크기 |
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.