Skip to content

Configuration

This document provides a detailed reference for configuring the ShipSaaS template.

Configurations are separated into several files within the src/config directory, each responsible for configuring specific aspects of the website.

src/config

  • website.ts
  • navbar-config.ts
  • footer-config.ts
  • sidebar-config.ts
  • avatar-config.ts
  • social-config.ts

Configuration files are used to define the structure and content of the website.

Configurations use consistent data types across different menus:

A basic menu item with the following properties:

Property Type Description
title string Display text of the menu item
description string? Optional description for dropdown items
icon TablerIcon? Optional Tabler Icons icon component
href string? Target URL link
external boolean? Whether the link opens in a new tab
authorizeOnly string[]? User roles that can see this item
items MenuItemConfig[]? Sub-menu items for dropdown menus
  1. Consistently use icons from Tabler Icons to ensure uniformity.
  2. For menu items visible only to specific roles, use the authorizeOnly property to restrict visibility.
  3. Use the Routes object (defined in src/lib/routes.ts) to define commonly used links to ensure consistency.

Now that you understand the configuration structure, explore these related topics: