Starter Guide

The fastest way to start building with Element is using our official starter template. This template includes Vite for fast development, TypeScript support, and a well-structured project layout.

Creating a New Project

Clone the starter template and get started immediately:

Project Structure

The starter template provides a well-organized project structure that scales from simple applications to complex projects.

Key Files

src/App.ts

The main application component:

src/App.spec.ts

Some component unit tests:

Development Features

Hot Module Replacement (HMR)

The starter template includes HMR support, so your changes are reflected immediately without losing application state.

Testing with Vitest and Testing Library

The project comes preconfigured for testing with Vitest and Testing Library. You can write and run tests for your Element components with full TypeScript support.

Last updated