Skip to content

Instantly share code, notes, and snippets.

@mattaebersold
Created December 1, 2022 23:22
Show Gist options
  • Save mattaebersold/c8af51a7200f9e67637a9ea05bdec6e0 to your computer and use it in GitHub Desktop.
Save mattaebersold/c8af51a7200f9e67637a9ea05bdec6e0 to your computer and use it in GitHub Desktop.
<template lang='pug'>
section.spacer(:class='classes' :data-component-parent='componentName')
</template>
<!-- ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– -->
<script lang='coffee'>
export default
props: block: Object
computed:
componentName: -> @$GTM_COMPONENTS.SPACER
# Root classes
classes: -> "height-#{@block.height}"
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment