Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Remote

Noemi Leon noeleo25

🦄
Remote
View GitHub Profile
@noeleo25
noeleo25 / CustomButton.vue
Last active Jul 18, 2020
Vue component for Custom Button
View CustomButton.vue
<template>
<button
:type="btnType"
class="primary-btn">
<slot> </slot>
</button>
</template>
<script>
export default {
@noeleo25
noeleo25 / Home.vue
Last active Aug 12, 2020
Custom directive: sticky header after scroll
View Home.vue
<template>
<!-- using custom directive v-sticky -->
<div class="w-100" v-sticky:top="{minWidth: 768, offset: 'vh'}">
</template>