Sha256: 68d323ecb17b6636d46d9291a63c453b91562ee63004bdd8d197839ea670bdf6
Contents?: true
Size: 478 Bytes
Versions: 7
Compression:
Stored size: 478 Bytes
Contents
import { htmlAttributes } from "../html/html-attributes"; export class Image { attributes: Record<string, any>; children: any[]; src: string; alt: string; constructor(src: string, alt: string, attributes: Record<string, any> = {}) { this.children = []; this.attributes = attributes; this.src = src; this.alt = alt; } get renderWrapper(): string { return `<img src='${this.src}' alt='${this.alt}' ${htmlAttributes(this.attributes)}/>`; } }
Version data entries
7 entries across 7 versions & 1 rubygems