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.

25 lines 989 B
import { html } from 'lit'; import { addAnimationController } from '../../animations/player.js'; import { addThemingController } from '../../theming/theming-controller.js'; import { registerComponent } from '../common/definitions/register.js'; import { IgcBaseAlertLikeComponent } from '../common/mixins/alert.js'; import { styles as shared } from './themes/shared/toast.common.css.js'; import { all } from './themes/themes.js'; import { styles } from './themes/toast.base.css.js'; class IgcToastComponent extends IgcBaseAlertLikeComponent { static register() { registerComponent(IgcToastComponent); } constructor() { super(); this._player = addAnimationController(this); addThemingController(this, all); } render() { return html `<slot .inert=${!this.open}></slot>`; } } IgcToastComponent.tagName = 'igc-toast'; IgcToastComponent.styles = [styles, shared]; export default IgcToastComponent; //# sourceMappingURL=toast.js.map