2020-02-14 12:51:45 +01:00
|
|
|
<script>
|
|
|
|
export let className = ""
|
|
|
|
export let type
|
|
|
|
export let _bb
|
|
|
|
|
|
|
|
let containerElement
|
|
|
|
|
|
|
|
$: containerElement && _bb.attachChildren(containerElement)
|
|
|
|
</script>
|
|
|
|
|
2020-02-25 16:21:23 +01:00
|
|
|
{#if type === 'h1'}
|
|
|
|
<h1 class={className} bind:this={containerElement} />
|
|
|
|
{:else if type === 'h2'}
|
|
|
|
<h2 class={className} bind:this={containerElement} />
|
|
|
|
{:else if type === 'h3'}
|
|
|
|
<h3 class={className} bind:this={containerElement} />
|
|
|
|
{:else if type === 'h4'}
|
|
|
|
<h4 class={className} bind:this={containerElement} />
|
|
|
|
{:else if type === 'h5'}
|
|
|
|
<h5 class={className} bind:this={containerElement} />
|
|
|
|
{:else if type === 'h6'}
|
|
|
|
<h6 class={className} bind:this={containerElement} />
|
2020-02-14 12:51:45 +01:00
|
|
|
{/if}
|