# Reuse Vue components within the plug-in folder

**URL:** <https://forum.getkirby.com/t/reuse-vue-components-within-the-plug-in-folder/29785>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 19, 2023, 3:43pm UTC](https://forum.getkirby.com/t/reuse-vue-components-within-the-plug-in-folder/29785 "2023-10-19T15:43:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![derfabifabi](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/derfabifabi/32/10908_2.png) [@derfabifabi](https://forum.getkirby.com/u/derfabifabi)\
**Post date:** [October 19, 2023, 3:43pm UTC](https://forum.getkirby.com/t/reuse-vue-components-within-the-plug-in-folder/29785/1 "2023-10-19T15:43:52Z")

</div>

Hey Kirbys!

Probably a silly question, but anyway:  
If I wanted to reuse vue components inside the plugin folder, I would do something like this:

```auto
<template>

<mediapacks />

</template>
<script>

// path to another plugin component inside the /plugin folder
import mediapacks from './../../../companyname-mediaPacks/src/components/mediapacks.vue';
</script>

```

if i am completely wrong, or there is a better way to do this, please let me know. I haven’t done that much with vue yet.

my goal is simply not to repeat the previously written code from another plugin.

Thank you! 🙂
