# Copy existing component

If Vueless customization options are not enough for your needs, you can fully copy and modify any Vueless component.

{% tabs %}
{% tab title="npm" %}

```bash
npx vueless copy <src> <target>

# example: 
# npx vueless copy UButton CustomButton
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn vueless copy <src> <target>

# example:
# yarn vueless copy UButton CustomButton
```

{% endtab %}

{% tab title="pnpm" %}

```bash
pnpm exec vueless copy <src> <target>

# example: 
# pnpm exec vueless copy UButton CustomButton
```

{% endtab %}

{% tab title="bun" %}

```bash
bunx vueless copy <src> <target>

# example:
# bunx vueless copy UButton CustomButton
```

{% endtab %}
{% endtabs %}

The component will be created in the `.vueless/components` folder.

{% hint style="warning" %}
Use this approach only when absolutely necessary, as you will need to manually update the component after each new Vueless release.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vueless.com/own-components/copy-existing-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
