import { LitElement, css, html } from "lit"
export default class Element extends LitElement {
static override styles = css`
figure {
margin: 0;
margin-top: 2em;
margin-bottom: 2em;
}
img {
width: 100%;
}
figcaption {
font-size: 12px;
color: #64748b;
margin-top: 0.5em;
padding-left: 16px;
padding-right: 16px;
}
`
static override properties = {
src: { type: String },
alt: { type: String },
caption: { type: String },
}
src!: string
alt!: string
caption!: string
override render() {
return html`
${this.caption}
`
}
}
if (typeof customElements !== "undefined" && !customElements.get("doc-figure")) {
customElements.define("doc-figure", Element)
}