// =============================================================================1// q-block Component2// =============================================================================34import { CustomElementView, ElementView, register } from '@mathigon/boost';56const template = '<div class="qb-title"></div><div class="qb-body"><slot></slot></div>';78@register('q-block', {template})9export class QBlock extends CustomElementView {10private $title!: ElementView11private $body!: ElementView1213ready() {14this.$title = this.$('.qb-title')15this.$body = this.$('.qb-body')1617if (this.$body.children.length) {18const t = this.$body.children.shift()19this.$title.append(t)20}21}22}232425