# Getting Started with the Kendo UI for Vue Spreadsheet

This guide provides essential information about using the Kendo UI for Vue Spreadsheet package. You will learn how to install the Spreadsheet package, add a Spreadsheet component to your project, style the component, and activate your license.

<CtaPanelOverview></CtaPanelOverview>

After completing this guide, you will be able to reproduce the following example.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/spreadsheet/get-started/source.txt)

## Before You Begin

```sh
npm create vite@latest my-app -- --template vue-ts
```

This guide requires that you have **basic knowledge of Vue and TypeScript**, and that you have already created [**a blank Vue project**](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/javascript-composition-api).

## Install the Component

```sh
npm i @progress/kendo-vue-spreadsheet
```

## Importing the Component

After installing the package, import the Spreadsheet component in the Vue App.

In the `src/App.vue` file of your Vue project, import the `Spreadsheet` component from the Spreadsheet package.

```js
import { Spreadsheet } from '@progress/kendo-vue-spreadsheet';
```

## Using the Component

1. After installing the Spreadsheet package and importing the components, add the Spreadsheet tag to the App component file of your Vue project (for example, `src/App.vue`).

2. Load the JSON sheets data in the `defaultProps` of the Spreadsheet in order to display initial Excel document in the component.

   ```html
   <template>
     <Spreadsheet
       :style="{ width: '100%', height: '700px' }"
       :default-props="{ sheets: data }"
     />
   </template>

   <script setup lang="ts">
   import { Spreadsheet } from '@progress/kendo-vue-spreadsheet';
   import { data } from './data';
   </script>
   ```

   > tip The Spreadsheet reads the `defaultProps` only when it mounts. To load other data later, use the `fromJSON` [method](https://www.telerik.com/kendo-vue-ui-develop/components/spreadsheet/methods).

3. To style the Spreadsheet, install and import the [Default theme](https://www.telerik.com/design-system/docs/themes/kendo-themes/default/), which is one of the [three beautiful themes](https://www.telerik.com/kendo-vue-ui-develop/components/styling) for Kendo UI for Vue.

   3.1. Install the Default theme package.

   ```sh
   npm i @progress/kendo-theme-default
   ```

   3.2. Import the CSS file from the package in `src/App.vue`. Add this import before your existing `App.css` import.

   ```js
   import '@progress/kendo-theme-default/dist/all.css';
   ```

4. Build and run the application by typing the following command in the root folder of your project:

   ```sh
   npm run dev
   ```

5. Navigate to [http://localhost:5173](http://localhost:5173/) to see the Kendo UI for Vue Spreadsheet component on the page.

## Activating Your License Key

**Important**: The Kendo UI for Vue Spreadsheet is a premium component that requires a license key file to be installed in your project. This applies to both trial and commercial usage:

* **Trial usage**: [Start a free trial](https://www.telerik.com/try/kendo-vue-ui) and download a trial license key file
* **Commercial usage**: [Purchase a license](https://www.telerik.com/purchase/kendo-ui) and download a commercial license key file

Without a valid license key file, the component will display licensing warnings and watermarks.

Follow the instructions on the Kendo UI for Vue [My License page](https://www.telerik.com/kendo-vue-ui-develop/components/my-license) to download and install your license key file. You can skip this step if your application already contains a Kendo UI for Vue license file.

## Dependencies

The Spreadsheet package requires you to install the following [peer dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/) in your application:

| Package Name                     | Description                                                                                                                                                                       |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| vue 3.0.0\*                      | Contains the functionality necessary to define Vue components.                                                                                                                    |
| @progress/kendo-drawing          | Contains the Drawing library, which provides interactive vector graphics.                                                                                                         |
| @progress/kendo-licensing        | Contains the internal infrastructure related to licensing.                                                                                                                        |
| @progress/kendo-vue-animation    | Enables the animations in the Kendo UI for Vue components.                                                                                                                        |
| @progress/kendo-vue-buttons      | Contains the Kendo UI for Vue Buttons components.                                                                                                                                 |
| @progress/kendo-vue-dropdowns    | Contains the Kendo UI for Vue Dropdowns, which allows users to choose from a predefined list of options.                                                                          |
| @progress/kendo-vue-inputs       | Contains the Kendo UI for Vue Inputs components.                                                                                                                                  |
| @progress/kendo-vue-intl         | Contains the Kendo UI for Vue Internationalization package that applies the desired cultures by providing services and pipes for the parsing and formatting of dates and numbers. |
| @progress/kendo-vue-layout       | Contains the Kendo UI for Vue Layout components.                                                                                                                                  |
| @progress/kendo-vue-popup        | Contains the Kendo UI for Vue Popup component.                                                                                                                                    |
| @progress/kendo-vue-progressbars | Contains the Kendo UI for Vue ProgressBar component.                                                                                                                              |
| @progress/kendo-vue-spreadsheet  | Contains the Kendo UI for Vue Spreadsheet component.                                                                                                                              |
| @progress/kendo-vue-treeview     | Contains the Kendo UI for Vue Treeview components.                                                                                                                                |
| @progress/kendo-vue-upload       | Contains the Kendo UI for Vue Upload components.                                                                                                                                  |
| @progress/kendo-svg-icons        | Contains the Kendo UI SVG icons.                                                                                                                                                  |

## Suggested Links

* [Globalization](https://www.telerik.com/kendo-vue-ui-develop/components/spreadsheet/globalization)
* [Toolbar](https://www.telerik.com/kendo-vue-ui-develop/components/spreadsheet/toolbar)
* [Events](https://www.telerik.com/kendo-vue-ui-develop/components/spreadsheet/events)

## Learning Resources

* [Getting Started with Kendo UI for Vue - JavaScript (Online Guide)](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/javascript-composition-api)
* [Getting Started with Kendo UI for Vue - TypeScript (Online Guide)](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/typescript-composition-api)
* [Virtual Classroom (Training Course for Registered Users)](https://learn.telerik.com/learn/course/internal/view/elearning/45/kendo-ui-for-vue-with-typescript)
