본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

토스트

원문 보기 위키 갱신

토스트 (Toast)

토스트는 화면 위에 오버레이 형태로 메시지를 띄워 주는 컴포넌트예요. MessageService의 add와 addAll 메서드를 호출해서 메시지를 표시하고, severity, summary, detail 같은 속성으로 메시지 내용을 구성해요. 성공, 정보, 경고, 오류 같은 다양한 심각도와 여러 화면 위치를 지원하고, 스티키 모드나 헤드리스 템플릿 커스터마이징까지 가능해요. 기본 사용법부터 접근성, 반응형 동작, 테마 설정까지 토스트의 전반적인 내용을 다루는 문서예요

출처: 문서

본문

Accessibility

스크린 리더 - Toast 컴포넌트는 alert 역할(role)을 사용하는데, 이 역할은 aria-live를 "assertive"로, aria-atomic을 "true"로 암묵적으로 정의해요. 닫기 요소는 버튼이며, aria-label은 기본적으로 locale API의 aria.close 속성을 참조해요. 닫기 버튼 키보드 지원 키 기능 enter 메시지를 닫아요. space 메시지를 닫아요.

Basic

messageService에서 제공하는 add와 addAll 메서드를 호출하면 토스트가 표시돼요. 개별 토스트는 Message 인터페이스로 지정하는데, 이 인터페이스는 severity, summary, detail 같은 다양한 속성을 정의해요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast />
            <p-button (onClick)="show()" label="Show" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule],
    providers: [MessageService]
})
export class ToastBasicDemo {
    private messageService = inject(MessageService);
}

clear-doc

토스트의 닫기 아이콘을 클릭하면 수동으로 토스트가 제거돼요. 같은 동작은 messageService의 clear 함수를 사용해서 프로그래밍 방식으로도 할 수 있어요. 인자 없이 호출하면 표시된 모든 메시지가 제거되고, key를 넣어서 호출하면 같은 key를 가진 토스트에 표시된 메시지들이 제거돼요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center gap-2">
            <p-toast key="myKey" />
            <p-button (click)="show()" label="Show" />
            <p-button (click)="clear()" label="Clear" severity="secondary" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule],
    providers: [MessageService]
})
export class ToastClearDemo {
    private messageService = inject(MessageService);

    clear() {
        this.messageService.clear();
    }
}

Headless

헤드리스 모드를 사용하면 기본 요소 대신 사용자 인터페이스 전체를 커스터마이즈할 수 있어요.

import { Component, inject, signal } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ProgressBarModule } from 'primeng/progressbar';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast position="top-center" key="confirm" (onClose)="onClose()" [baseZIndex]="5000">
                <ng-template let-message #headless let-closeFn="closeFn">
                    <section class="flex flex-col p-4 gap-4 w-full bg-primary/70 rounded-xl">
                        <div class="flex items-center gap-5">
                            <i class="pi pi-cloud-upload text-white dark:text-black text-2xl"></i>
                            <span class="font-bold text-base text-white dark:text-black">{{ message.summary }}</span>
                        </div>
                        <div class="flex flex-col gap-2">
                            <p-progressbar [value]="progress()" [showValue]="false" [style]="{ height: '4px' }" class="!bg-primary/80" />
                            <label class="text-sm font-bold text-white dark:text-black">{{ progress() }}% uploaded</label>
                        </div>
                        <div class="flex gap-4 mb-4 justify-end">
                            <p-button label="Another Upload?" (click)="closeFn($event)" size="small" />
                            <p-button label="Cancel" (click)="closeFn($event)" size="small" />
                        </div>
                    </section>
                </ng-template>
            </p-toast>
            <p-button (click)="showConfirm()" label="Confirm" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ProgressBarModule, ToastModule],
    providers: [MessageService]
})
export class ToastHeadlessDemo {
    private messageService = inject(MessageService);
    visible: boolean = false;
    progress = signal(0);
    interval: any = null;

    showConfirm() {
        if (!this.visible) {
            this.messageService.add({
                key: 'confirm',
                sticky: true,
                severity: 'custom',
                summary: 'Uploading your files.',
                styleClass: 'backdrop-blur-lg rounded-2xl'
            });
            this.visible = true;
            this.progress.set(0);
        
            if (this.interval) {
                clearInterval(this.interval);
            }
        
            this.interval = setInterval(() => {
                if (this.progress() <= 100) {
                    this.progress.update((v) => v + 20);
                }
        
                if (this.progress() >= 100) {
                    this.progress.set(100);
                    clearInterval(this.interval);
                }
            }, 1000);
        }
    }

    onClose() {
        this.visible = false;
    }
}

life-doc

토스트는 기본적으로 3000ms 후에 사라져요. 이 동작을 바꾸려면 message 또는 toast에 life 옵션을 설정하세요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center gap-2">
            <p-toast [life]="10000" />
            <p-button (click)="showLife()" label="Show Life" />
            <p-button (click)="showLifeLong()" label="Show Life Long" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule],
    providers: [MessageService]
})
export class ToastLifeDemo {
    private messageService = inject(MessageService);

    showLifeLong() {
        this.messageService.add({ severity: 'info', summary: 'Life', detail: 'I show for 20000ms', life: 20000 });
    }
}

Multiple

messageService의 showAll 메서드에 배열을 전달하면 여러 개의 토스트가 표시돼요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { RippleModule } from 'primeng/ripple';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast />
            <p-button pRipple (click)="show()" label="Multiple" severity="warn" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule, RippleModule],
    providers: [MessageService]
})
export class ToastMultipleDemo {
    private messageService = inject(MessageService);
}

Position

토스트의 위치는 position 속성으로 커스터마이즈해요. 유효한 값은 top-left, top-center, top-right, bottom-left, bottom-center, bottom-right, center예요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { RippleModule } from 'primeng/ripple';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast position="top-left" key="tl" />
            <p-toast position="bottom-left" key="bl" />
            <p-toast position="bottom-right" key="br" />
            <div class="flex flex-wrap gap-2">
                <p-button pRipple (click)="showTopLeft()" label="Top Left" />
                <p-button pRipple (click)="showBottomLeft()" label="Bottom Left" />
                <p-button pRipple (click)="showBottomRight()" label="Bottom Right" />
            </div>
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule, RippleModule],
    providers: [MessageService]
})
export class ToastPositionDemo {
    private messageService = inject(MessageService);

    showBottomLeft() {
        this.messageService.add({
            severity: 'warn',
            summary: 'Warn Message',
            detail: 'Message Content',
            key: 'bl',
            life: 3000
        });
    }

    showBottomRight() {
        this.messageService.add({
            severity: 'success',
            summary: 'Success Message',
            detail: 'Message Content',
            key: 'br',
            life: 3000
        });
    }
}

Responsive

breakpoints 옵션을 사용하면 화면 크기별로 토스트 스타일을 조정할 수 있어요. breakpoints 값은 객체 리터럴이어야 하고, 키는 최대 화면 크기, 값은 화면별 스타일이에요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast [breakpoints]="{ '920px': { width: '50%', right: 'auto' } }" />
            <p-button (click)="show()" label="Show" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule],
    providers: [MessageService]
})
export class ToastResponsiveDemo {
    private messageService = inject(MessageService);
}

Severity

severity 옵션은 메시지의 유형을 지정해요. 메시지 유형은 success, info, warn, error 네 가지예요. 메시지의 severity는 토스트의 아이콘과 색상을 표시하는 데 사용돼요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { RippleModule } from 'primeng/ripple';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center gap-2">
            <p-toast />
            <p-button type="button" pRipple (click)="showSuccess()" label="Success" severity="success" />
            <p-button type="button" pRipple (click)="showInfo()" label="Info" severity="info" />
            <p-button type="button" pRipple (click)="showWarn()" label="Warn" severity="warn" />
            <p-button type="button" pRipple (click)="showError()" label="Error" severity="danger" />
            <p-button type="button" pRipple (click)="showSecondary()" label="Secondary" severity="secondary" />
            <p-button type="button" pRipple (click)="showContrast()" label="Contrast" severity="contrast" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule, RippleModule],
    providers: [MessageService]
})
export class ToastSeverityDemo {
    private messageService = inject(MessageService);

    showInfo() {
        this.messageService.add({ severity: 'info', summary: 'Info', detail: 'Message Content' });
    }

    showWarn() {
        this.messageService.add({ severity: 'warn', summary: 'Warn', detail: 'Message Content' });
    }

    showError() {
        this.messageService.add({ severity: 'error', summary: 'Error', detail: 'Message Content' });
    }

    showContrast() {
        this.messageService.add({ severity: 'contrast', summary: 'Contrast', detail: 'Message Content' });
    }

    showSecondary() {
        this.messageService.add({ severity: 'secondary', summary: 'Secondary', detail: 'Message Content' });
    }
}

Sticky

토스트는 life 옵션으로 정의된 시간이 지나면 사라져요. 이 동작을 바꾸고 토스트가 자동으로 숨겨지지 않게 하려면 message에 sticky 옵션을 true로 설정하세요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { RippleModule } from 'primeng/ripple';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast />
            <div class="flex flex-wrap gap-2">
                <p-button pRipple (click)="show()" label="Sticky" />
                <p-button pRipple (click)="clear()" severity="secondary" label="Clear" />
            </div>
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule, RippleModule],
    providers: [MessageService]
})
export class ToastStickyDemo {
    private messageService = inject(MessageService);

    clear() {
        this.messageService.clear();
    }
}

target-doc

한 페이지에는 여러 개의 toast 컴포넌트가 있을 수 있어요. 특정 메시지를 특정 toast에 대상으로 지정하고 싶다면 key 프로퍼티를 사용해서 toast와 메시지가 서로 매칭되도록 하세요.

import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center gap-2">
            <p-toast key="toast1" />
            <p-toast key="toast2" />
            <p-button (click)="showToast1()" label="Show Success" />
            <p-button (click)="showToast2()" label="Show Warning" severity="warn" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, ToastModule],
    providers: [MessageService]
})
export class ToastTargetDemo {
    private messageService = inject(MessageService);

    showToast2() {
        this.messageService.clear();
        this.messageService.add({ key: 'toast2', severity: 'warn', summary: 'Warning', detail: 'key: toast2' });
    }
}

template-doc

템플릿을 사용하면 콘텐츠를 커스터마이징할 수 있는데, 이때 메시지 인스턴스는 암시적 변수로 제공돼요.

import { Component, inject } from '@angular/core';
import { AvatarModule } from 'primeng/avatar';
import { ButtonModule } from 'primeng/button';
import { ToastModule } from 'primeng/toast';
import { MessageService } from 'primeng/api';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-toast position="bottom-center" key="confirm" (onClose)="onReject()" [baseZIndex]="5000">
                <ng-template let-message #message>
                    <div class="flex flex-col items-start flex-auto">
                        <div class="flex items-center gap-2">
                            <p-avatar image="https://primefaces.org/cdn/primeng/images/demo/avatar/amyelsner.png" shape="circle" />
                            <span class="font-bold">Amy Elsner</span>
                        </div>
                        <div class="font-medium text-lg my-4">{{ message.summary }}</div>
                        <p-button severity="success" size="small" label="Reply" (click)="onConfirm()" />
                    </div>
                </ng-template>
            </p-toast>
            <p-button (click)="showConfirm()" label="View" />
        </div>
    `,
    standalone: true,
    imports: [AvatarModule, ButtonModule, ToastModule],
    providers: [MessageService]
})
export class ToastTemplateDemo {
    private messageService = inject(MessageService);

    onReject() {
        this.messageService.clear('confirm');
        this.visible = false;
    }

    showConfirm() {
        if (!this.visible) {
            this.messageService.add({
                key: 'confirm',
                sticky: true,
                severity: 'success',
                summary: 'Can you send me the report?'
            });
            this.visible = true;
        }
    }
}

Toast

Toast는 오버레이에 메시지를 표시할 때 사용해요.

Props

Name Type Default Description
dt InputSignal undefined 컴포넌트의 스코프 디자인 토큰을 정의해요.
unstyled InputSignal undefined 컴포넌트를 스타일 없이 렌더링할지 여부를 나타내요.
pt InputSignal undefined 컴포넌트 내부의 DOM 요소에 속성을 전달할 때 사용해요.
ptOptions InputSignal undefined 컴포넌트의 passthrough(pt) 옵션을 구성할 때 사용해요.
key string - 메시지가 특정 toast 컴포넌트를 대상으로 할 때 사용되는 메시지의 키예요.
autoZIndex boolean true 레이어를 자동으로 관리할지 여부예요.
baseZIndex number 0 레이어링에 사용할 기본 zIndex 값이에요.
life number 3000 메시지를 표시하는 기본 시간(밀리초)이에요.
styleClass string - 컴포넌트의 인라인 클래스예요. (지원 중단)
position ToastPositionType - 뷰포트에서 toast의 위치예요.
preventOpenDuplicates boolean false 같은 내용의 toast가 이미 표시되고 있으면 새 메시지를 추가하지 않아요.
preventDuplicates boolean false 같은 내용의 메시지는 한 번만 표시해요.
showTransformOptions string translateY(100%) show 애니메이션의 transform 옵션이에요. (지원 중단)
hideTransformOptions string translateY(-100%) hide 애니메이션의 transform 옵션이에요. (지원 중단)
showTransitionOptions string 300ms ease-out show 애니메이션의 transition 옵션이에요. (지원 중단)
hideTransitionOptions string 250ms ease-in hide 애니메이션의 transition 옵션이에요. (지원 중단)
motionOptions InputSignal ... 모션 옵션이에요.
breakpoints { [key: string]: any } - 화면 크기별로 스타일을 정의하는 객체 리터럴이에요.

Emits

Name Parameters Description
onClose event: ToastCloseEvent 메시지가 닫힐 때 호출되는 콜백이에요.

Templates

Name Type Description
template TemplateRef 커스텀 메시지 템플릿이에요.
headless TemplateRef 커스텀 headless 템플릿이에요.

Pass Through Options

Name Type Description
host PassThroughOption<HTMLElement, I> 호스트의 DOM 요소에 속성을 전달할 때 사용해요.
root PassThroughOption<HTMLDivElement, I> 루트의 DOM 요소에 속성을 전달할 때 사용해요.
message PassThroughOption<HTMLDivElement, I> 메시지의 DOM 요소에 속성을 전달할 때 사용해요.
messageContent PassThroughOption<HTMLDivElement, I> 메시지 콘텐츠의 DOM 요소에 속성을 전달할 때 사용해요.
messageIcon PassThroughOption<HTMLElement, I> 메시지 아이콘의 DOM 요소에 속성을 전달할 때 사용해요.
messageText PassThroughOption<HTMLDivElement, I> 메시지 텍스트의 DOM 요소에 속성을 전달할 때 사용해요.
summary PassThroughOption<HTMLDivElement, I> 요약의 DOM 요소에 속성을 전달할 때 사용해요.
detail PassThroughOption<HTMLDivElement, I> 상세 내용의 DOM 요소에 속성을 전달할 때 사용해요.
closeButton PassThroughOption<HTMLButtonElement, I> 닫기 버튼의 DOM 요소에 속성을 전달할 때 사용해요.
closeIcon PassThroughOption<HTMLElement, I> 닫기 아이콘의 DOM 요소에 속성을 전달할 때 사용해요.
motion MotionOptions 모션 컴포넌트/디렉티브에 옵션을 전달할 때 사용해요.

Theming

CSS Classes

Class Description
p-toast 루트 요소의 클래스 이름이에요.
p-toast-message 메시지 요소의 클래스 이름이에요.
p-toast-message-content 메시지 콘텐츠 요소의 클래스 이름이에요.
p-toast-message-icon 메시지 아이콘 요소의 클래스 이름이에요.
p-toast-message-text 메시지 텍스트 요소의 클래스 이름이에요.
p-toast-summary 요약 요소의 클래스 이름이에요.
p-toast-detail 상세 내용 요소의 클래스 이름이에요.
p-toast-close-button 닫기 버튼 요소의 클래스 이름이에요.
p-toast-close-icon 닫기 아이콘 요소의 클래스 이름이에요.

디자인 토큰

Token CSS Variable 설명
toast.width --p-toast-width 루트의 너비예요
toast.border.radius --p-toast-border-radius 루트의 테두리 반경이에요
toast.border.width --p-toast-border-width 루트의 테두리 너비예요
toast.transition.duration --p-toast-transition-duration 루트의 전환 지속 시간이에요
toast.blur --p-toast-blur blur 섹션의 토큰을 전달하는 데 사용돼요
toast.icon.size --p-toast-icon-size 아이콘의 크기예요
toast.content.padding --p-toast-content-padding 콘텐츠의 패딩이에요
toast.content.gap --p-toast-content-gap 콘텐츠의 간격이에요
toast.text.gap --p-toast-text-gap 텍스트의 간격이에요
toast.summary.font.weight --p-toast-summary-font-weight summary의 글꼴 두께예요
toast.summary.font.size --p-toast-summary-font-size summary의 글꼴 크기예요
toast.detail.font.weight --p-toast-detail-font-weight detail의 글꼴 두께예요
toast.detail.font.size --p-toast-detail-font-size detail의 글꼴 크기예요
toast.close.button.width --p-toast-close-button-width 닫기 버튼의 너비예요
toast.close.button.height --p-toast-close-button-height 닫기 버튼의 높이예요
toast.close.button.border.radius --p-toast-close-button-border-radius 닫기 버튼의 테두리 반경이에요
toast.close.button.focus.ring.width --p-toast-close-button-focus-ring-width 닫기 버튼의 포커스 링 너비예요
toast.close.button.focus.ring.style --p-toast-close-button-focus-ring-style 닫기 버튼의 포커스 링 스타일이에요
toast.close.button.focus.ring.offset --p-toast-close-button-focus-ring-offset 닫기 버튼의 포커스 링 오프셋이에요
toast.close.icon.size --p-toast-close-icon-size 닫기 아이콘의 크기예요
toast.info.background --p-toast-info-background info의 배경이에요
toast.info.border.color --p-toast-info-border-color info의 테두리 색상이에요
toast.info.color --p-toast-info-color info의 색상이에요
toast.info.detail.color --p-toast-info-detail-color info의 detail 색상이에요
toast.info.shadow --p-toast-info-shadow info의 그림자예요
toast.info.close.button.hover.background --p-toast-info-close-button-hover-background info의 닫기 버튼 호버 배경이에요
toast.info.close.button.focus.ring.color --p-toast-info-close-button-focus-ring-color info의 닫기 버튼 포커스 링 색상이에요
toast.info.close.button.focus.ring.shadow --p-toast-info-close-button-focus-ring-shadow info의 닫기 버튼 포커스 링 그림자예요
toast.success.background --p-toast-success-background success의 배경이에요
toast.success.border.color --p-toast-success-border-color success의 테두리 색상이에요
toast.success.color --p-toast-success-color success의 색상이에요
toast.success.detail.color --p-toast-success-detail-color success의 detail 색상이에요
toast.success.shadow --p-toast-success-shadow success의 그림자예요
toast.success.close.button.hover.background --p-toast-success-close-button-hover-background success의 닫기 버튼 호버 배경이에요
toast.success.close.button.focus.ring.color --p-toast-success-close-button-focus-ring-color success의 닫기 버튼 포커스 링 색상이에요
toast.success.close.button.focus.ring.shadow --p-toast-success-close-button-focus-ring-shadow success의 닫기 버튼 포커스 링 그림자예요
toast.warn.background --p-toast-warn-background warn의 배경이에요
toast.warn.border.color --p-toast-warn-border-color warn의 테두리 색상이에요
toast.warn.color --p-toast-warn-color warn의 색상이에요
toast.warn.detail.color --p-toast-warn-detail-color warn의 detail 색상이에요
toast.warn.shadow --p-toast-warn-shadow warn의 그림자예요
toast.warn.close.button.hover.background --p-toast-warn-close-button-hover-background warn의 닫기 버튼 호버 배경이에요
toast.warn.close.button.focus.ring.color --p-toast-warn-close-button-focus-ring-color warn의 닫기 버튼 포커스 링 색상이에요
toast.warn.close.button.focus.ring.shadow --p-toast-warn-close-button-focus-ring-shadow warn의 닫기 버튼 포커스 링 그림자예요
toast.error.background --p-toast-error-background error의 배경이에요
toast.error.border.color --p-toast-error-border-color error의 테두리 색상이에요
toast.error.color --p-toast-error-color error의 색상이에요
toast.error.detail.color --p-toast-error-detail-color error의 detail 색상이에요
toast.error.shadow --p-toast-error-shadow error의 그림자예요
toast.error.close.button.hover.background --p-toast-error-close-button-hover-background error의 닫기 버튼 호버 배경이에요
toast.error.close.button.focus.ring.color --p-toast-error-close-button-focus-ring-color error의 닫기 버튼 포커스 링 색상이에요
toast.error.close.button.focus.ring.shadow --p-toast-error-close-button-focus-ring-shadow error의 닫기 버튼 포커스 링 그림자예요
toast.secondary.background --p-toast-secondary-background secondary의 배경이에요
toast.secondary.border.color --p-toast-secondary-border-color secondary의 테두리 색상이에요
toast.secondary.color --p-toast-secondary-color secondary의 색상이에요
toast.secondary.detail.color --p-toast-secondary-detail-color secondary의 detail 색상이에요
toast.secondary.shadow --p-toast-secondary-shadow secondary의 그림자예요
toast.secondary.close.button.hover.background --p-toast-secondary-close-button-hover-background secondary의 닫기 버튼 호버 배경이에요
toast.secondary.close.button.focus.ring.color --p-toast-secondary-close-button-focus-ring-color secondary의 닫기 버튼 포커스 링 색상이에요
toast.secondary.close.button.focus.ring.shadow --p-toast-secondary-close-button-focus-ring-shadow secondary의 닫기 버튼 포커스 링 그림자예요
toast.contrast.background --p-toast-contrast-background contrast의 배경이에요
toast.contrast.border.color --p-toast-contrast-border-color contrast의 테두리 색상이에요
toast.contrast.color --p-toast-contrast-color contrast의 색상이에요
toast.contrast.detail.color --p-toast-contrast-detail-color contrast의 detail 색상이에요
toast.contrast.shadow --p-toast-contrast-shadow contrast의 그림자예요
toast.contrast.close.button.hover.background --p-toast-contrast-close-button-hover-background contrast의 닫기 버튼 호버 배경이에요
toast.contrast.close.button.focus.ring.color --p-toast-contrast-close-button-focus-ring-color contrast의 닫기 버튼 포커스 링 색상이에요
toast.contrast.close.button.focus.ring.shadow --p-toast-contrast-close-button-focus-ring-shadow contrast의 닫기 버튼 포커스 링 그림자예요

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.