Skip to content

Instantly share code, notes, and snippets.

@mattaebersold
Created December 1, 2022 23:24
Show Gist options
  • Save mattaebersold/20c5b2c5988dda5b75422af4c2199091 to your computer and use it in GitHub Desktop.
Save mattaebersold/20c5b2c5988dda5b75422af4c2199091 to your computer and use it in GitHub Desktop.
<!-- Spacer block -->
<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