UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

27 lines 1.35 kB
import { FlashbarProps, InternalFlashbarProps } from './interfaces'; export declare const handleFlashDismissedInternal: (dismissedId: string | undefined, items: ReadonlyArray<FlashbarProps.MessageDefinition> | undefined, refCurrent: HTMLDivElement | null, flashRefsCurrent: Record<string | number, HTMLDivElement | null>) => void; export declare function useFlashbar({ items, onItemsAdded, onItemsChanged, onItemsRemoved, __internalRootRef, ...restProps }: InternalFlashbarProps & { onItemsAdded?: (items: FlashbarProps.MessageDefinition[]) => void; onItemsRemoved?: (items: FlashbarProps.MessageDefinition[]) => void; onItemsChanged?: (options?: { allItemsHaveId?: boolean; isReducedMotion?: boolean; }) => void; }): { allItemsHaveId: boolean; baseProps: import("../internal/base-component").BaseComponentProps; isReducedMotion: boolean; isVisualRefresh: boolean; mergedRef: ((instance: any) => void) | null; ref: import("react").MutableRefObject<HTMLDivElement | null>; flashRefs: import("react").MutableRefObject<Record<string | number, HTMLDivElement | null>>; handleFlashDismissed: (dismissedId?: string, persistenceConfig?: FlashbarProps.PersistenceConfig) => void; }; export declare function useFlashbarVisibility(items: ReadonlyArray<FlashbarProps.MessageDefinition>): FlashbarProps.MessageDefinition[];