dees-catalog/ts_web/elements/dees-toast.ts

29 lines
628 B
TypeScript
Raw Normal View History

2023-08-07 18:02:18 +00:00
import { customElement, DeesElement, type TemplateResult, html, type CSSResult, } from '@design.estate/dees-element';
2020-09-13 16:24:48 +00:00
2023-08-07 17:13:29 +00:00
import * as domtools from '@design.estate/dees-domtools';
2023-10-11 10:24:12 +00:00
import { demoFunc } from './dees-toast.demo.js';
2020-09-13 16:24:48 +00:00
2021-03-06 15:48:02 +00:00
declare global {
interface HTMLElementTagNameMap {
'dees-toast': DeesToast;
}
}
2020-09-13 16:24:48 +00:00
@customElement('dees-toast')
2022-01-24 00:39:47 +00:00
export class DeesToast extends DeesElement {
2023-10-11 10:24:12 +00:00
public static demo = demoFunc;
2020-09-13 16:24:48 +00:00
constructor() {
super();
domtools.elementBasic.setup();
}
public render(): TemplateResult {
return html`
${domtools.elementBasic.styles}
<style></style>
`;
}
}