@webwriter/slides
Version:
WIP - Present content as a sequence of screens (slides, tabs, etc.).
34 lines (27 loc) • 741 B
text/typescript
/** config */
import {html, css} from "lit"
import {LitElementWw} from "@webwriter/lit"
import {customElement, property} from "lit/decorators.js"
import "@shoelace-style/shoelace/dist/themes/light.css"
/** Single slide for the `webwriter-slides` widget.
* @slot - Content of the slide
*/
("webwriter-slide")
export class WebwriterSlide extends LitElementWw {
/** Whether the slide is selected/shown. */
({type: Boolean, attribute: true, reflect: true})
accessor active = false
static styles = css`
:host {
height: 100%;
width: 100%;
padding: 10px;
box-sizing: border-box;
display: block;
overflow: auto;
}
`
render() {
return html`<slot></slot>`
}
}