28 lines
495 B
HTML
28 lines
495 B
HTML
<script props>
|
|
// https://maizzle.com/docs/components/spacer
|
|
let styles = []
|
|
|
|
if (props.height) {
|
|
styles.push(`line-height: ${props.height};`)
|
|
}
|
|
|
|
if (props['mso-height']) {
|
|
styles.push(`mso-line-height-alt: ${props['mso-height']};`)
|
|
}
|
|
|
|
module.exports = {
|
|
height: props.height,
|
|
styles: styles.join('')
|
|
}
|
|
</script>
|
|
|
|
<if condition="height">
|
|
<div
|
|
role="separator"
|
|
style="{{ styles }}"
|
|
>‍</div>
|
|
</if>
|
|
<else>
|
|
<div role="separator">‍</div>
|
|
</else>
|