# Fileshare

Este componente web permite facilitar la gestión visual de los archivos que se vayan a enviar y recibir con muy pocas líneas de código, pero sin dejar de lado la personalización con HTML, CSS y Javascript.

Podrás usar el componente sin necesidad de modificar o añadir nada, o bien personalizar la caja de selección de archivos, comportamiento de envío, cómo adjuntar archivos y mucho más.

Primero deberás cargar el componente en la cabecera de tu sitio web como script:

```html
<script src="https://cdn.videsk.io/sdk/fileshare.component.min.js"></script>
```

{% hint style="warning" %}
Debes cargar el recurso antes de usar el componente `<videsk-fileshare>`, de lo contario será un elemento sin las propiedades y métodos. Además, debes tener cuidado con el atribute `async` o `defer`.
{% endhint %}

Para poder personalizar este componente solo deberás definirlo en alguna parte de tú código HTML:

```html
<videsk-fileshare></videsk-fileshare>
```

Una vez que has definido el componente podrás acceder a el mediante `querySelector` o cual selector HTML con Javascript.

```javascript
const component = document.querySelector('videsk-fileshare');
```

Posteriormente podrás hacer uso de sus propiedades, slots, métodos y eventos disponibles.


---

# 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.videsk.io/es-developers/componentes-web/fileshare.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.
