UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

45 lines (44 loc) 1.85 kB
import { type Ref } from 'lit/directives/ref.js'; import { addAnimationController } from '../../animations/player.js'; import { IgcBaseAlertLikeComponent } from '../common/mixins/alert.js'; import type { AbstractConstructor } from '../common/mixins/constructor.js'; export interface IgcSnackbarComponentEventMap { igcAction: CustomEvent<void>; } declare const IgcSnackbarComponent_base: import("../common/mixins/constructor.js").Constructor<import("../common/mixins/event-emitter.js").EventEmitterInterface<IgcSnackbarComponentEventMap>> & AbstractConstructor<IgcBaseAlertLikeComponent>; /** * A snackbar component is used to provide feedback about an operation * by showing a brief message at the bottom of the screen. * * @element igc-snackbar * * @slot - Default slot to render the snackbar content. * @slot action - Renders the action part of the snackbar. Usually an interactive element (button) * * @fires igcAction - Emitted when the snackbar action button is clicked. * * @csspart base - The base wrapper of the snackbar component. * @csspart message - The snackbar message. * @csspart action - The default snackbar action button. * @csspart action-container - The area holding the actions. */ export default class IgcSnackbarComponent extends IgcSnackbarComponent_base { static readonly tagName = "igc-snackbar"; static styles: import("lit").CSSResult[]; static register(): void; protected contentRef: Ref<HTMLElement>; protected _animationPlayer: ReturnType<typeof addAnimationController>; /** * The snackbar action button. * @attr action-text */ actionText: string; private handleClick; protected render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'igc-snackbar': IgcSnackbarComponent; } } export {};