# Getting Started with the KendoReact Timeline

This guide provides essential information about using the KendoReact Timeline component. You will learn how to install the Layout package that provides the Timeline. Then, you will add a Timeline component to your project, style the component, and activate your license.

<div data-component="StartKendoReactFreeSection"></div>

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

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/timeline/overview/func/source.txt)

## Setting Up Your React Project

Before you install the KendoReact Layout package, which contains the Timeline component, make sure that you have a running React project. The easiest way to set up a KendoReact project is to use the [Create KendoReact App](https://www.telerik.com/kendo-react-ui/components/getting-started/#1-creating-the-react-app) approach that is described in the [Get Started with KendoReact](https://www.telerik.com/kendo-react-ui-develop/components/getting-started) article.

## Installing the Layout Package

All KendoReact packages are distributed through npm and offer a similar installation experience. To use the Timeline component, start with the installation of the Layout npm package and its [dependencies](https://www.telerik.com/kendo-react-ui-develop/components/layout/timeline/get-started#dependencies). Use [NodeJS LTS](https://nodejs.org/en) (or a version >= 14).

```sh
npm i @progress/kendo-react-layout
```

## Importing the Component

After installing the package, import the Timeline component in the React App.

In the `src/App.tsx` file of your React project, import the `Timeline` component from the Layout package.

```jsx
import { Timeline } from '@progress/kendo-react-layout';
```

## Using the Component

1. Import the events and pass them to the component.

   ```jsx
      <Timeline
            events={events}
         />
   ```

2. To style the Timeline, install and import the [Meridian theme](https://www.telerik.com/design-system/docs/themes/kendo-themes/meridian/), which is one of the [three beautiful themes](https://www.telerik.com/kendo-react-ui-develop/components/styling) for KendoReact.

   2.1. Install the Meridian theme package.

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

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

   ```jsx
   import '@progress/kendo-theme-meridian/dist/all.css';
   ```

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

   ```sh
   npm start
   ```

4. Navigate to [http://localhost:3000](http://localhost:3000/) to see the KendoReact Timeline component on the page.

## Activating Your License Key

Using any of the UI components in the KendoReact library requires either a commercial license key or an active trial license key.

Follow the instructions on the KendoReact [My License page](https://www.telerik.com/kendo-react-ui-develop/components/my-license) to activate your trial or commercial license. You can skip this step if your application already contains a KendoReact license file.

## Dependencies

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

| Package Name                       | Description                                                                                                                                                                 |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| react 18.0.0\*                     | Contains the functionality necessary to define React components.                                                                                                            |
| react-dom                          | Contains the React renderer for the web.                                                                                                                                    |
| @progress/kendo-licensing          | Contains the internal infrastructure related to licensing.                                                                                                                  |
| @progress/kendo-react-progressbars | Contains the KendoReact ProgressBar component.                                                                                                                              |
| @progress/kendo-react-intl         | Contains the KendoReact Internationalization package that applies the desired cultures by providing services and pipes for the parsing and formatting of dates and numbers. |
| @progress/kendo-svg-icons          | Contains the KendoReact SVG icons.                                                                                                                                          |

## Suggested Links

* [React Timeline](https://www.telerik.com/kendo-react-ui-develop/components/layout/timeline)
* [Getting Started with the KendoReact Layout Package](https://www.telerik.com/kendo-react-ui-develop/components/layout/get-started)
* [API Reference of the KendoReact Timeline](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/timeline)
* [API Reference of the TimeLineProps](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/timelineprops)
