Skip to content

Instantly share code, notes, and snippets.

@mattaebersold
Last active December 1, 2022 21:31
Show Gist options
  • Save mattaebersold/f51aaed65b664735f0d7e2c753e08ddc to your computer and use it in GitHub Desktop.
Save mattaebersold/f51aaed65b664735f0d7e2c753e08ddc to your computer and use it in GitHub Desktop.
<template lang="pug">
.copy(:class="maxWidth" :data-component-parent='componentName')
in-view(animate once class='content'): cloak-copy-craft-block(:block="block")
</template>
<script lang="coffee">
export default
props:
block: Object
computed:
maxWidth: -> @block?.maxWidth or "max-w-s"
componentName: -> @$GTM_COMPONENTS.COPY
</script>
<style lang="stylus" scoped>
.content
standard-in-view(content)
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment