import { type ComponentPropsWithoutRef, type ReactNode } from 'react'; import type { NotificationAction, NotificationColor } from './Notification'; interface FloatingNotificationProps extends Omit, 'title'> { /** * 알림 제목 텍스트 */ title: ReactNode; /** * 알림 본문 텍스트 (선택사항) */ supportingText?: ReactNode; /** * 알림 색상 스타일 * @default 'neutral' */ color?: NotificationColor; /** * 닫기 버튼 클릭 이벤트 핸들러 */ onClose?: () => void; /** * 닫기 버튼 숨김 여부 * `true`이면 autoClose 미지정 시 3초 후 자동으로 닫힘 (onClose 호출, 끄려면 `autoClose={0}`) * @default false */ hideCloseButton?: boolean; /** * 추가 CSS 클래스 */ className?: string; /** * 버튼 영역 (선택사항) */ actions?: NotificationAction[]; /** * 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음) * hideCloseButton이면 미지정 시 3초 * @default 0 */ autoClose?: number; /** * Portal 마운트 여부. * * - `false` (기본값): 부모 JSX 트리 안에 카드로 그대로 렌더된다. * 특정 컨테이너 안에서 표시하거나, 인라인 미리보기 (docs/스토리북) 용도. * * - `true`: document.body의 `.ncua-floating-notification-host` 싱글톤에 * `createPortal`로 마운트되어 우측 상단에 노출. 다중 발생 시 최신 토스트가 * 상단에 노출되고 이전 토스트들이 아래로 12px씩 겹쳐 쌓인다 (LIFO, * `--ncua-floating-notification-stack-overlap` 변수로 조정 가능). * Vanilla(CDN) 측 `new ncua.Notification({type:'floating'}).show()` 와 동일한 동작. * * @default false */ portal?: boolean; } declare const FloatingNotification: import("react").ForwardRefExoticComponent>; export type { FloatingNotificationProps }; export { FloatingNotification };