Installation
Installing components
Choose your preferred package manager to install the components. The package includes TypeScript definitions out of the box and requires no additional configuration.
Installing themes
Our themes come with all the components pre-installed and configured. You can choose between using git clone
or degit
for installation.
Starter theme
Dashboard theme
Post installation
After installing, you’ll need to set up your project. The steps differ slightly depending on whether you’re using the components package or a theme.
Components setup
- Import the components you need:
- Add the component to your template:
Theme setup
- Install dependencies:
- Start development server:
Optional dependencies
Some components require additional packages to unlock their full potential. Here’s what you might need:
Icon support
To use icons in components like Notifications:
ESLint for accessibility
We recommend using ESLint with accessibility rules to catch common issues during development:
Troubleshooting
Here are some common issues you might encounter and how to resolve them:
Common issues
-
Port conflicts: If port 4321 is in use, Astro will automatically try the next available port.
-
Node.js version: Ensure you’re using Node.js 18.14.1 or higher:
- Dependency conflicts: Clear your dependencies and reinstall if needed: