dees-wcctools/test/elements/test-demoelement.ts

28 lines
712 B
TypeScript
Raw Normal View History

2020-11-26 02:28:17 +00:00
import { LitElement, customElement, TemplateResult, html } from 'lit-element';
import * as domtools from '@designestate/dees-domtools';
@customElement('test-demoelement')
export class TestDemoelement extends LitElement {
public static demo = () => html`<test-demoelement></test-demoelement>`;
public render() {
return html`
<style>
.maincontainer {
display: block;
background: #fff;
padding: 10px;
border-radius: 10px;
}
${domtools.breakpoints.cssForPhablet(`
.maincontainer {
background: #000;
}
`)}
2020-11-26 02:50:50 +00:00
</style>
2020-11-26 02:28:17 +00:00
<div class="maincontainer">This is a demo element</div>
`;
}
2020-11-26 02:50:50 +00:00
}