Header
Overview
The Header component is designed to provide a customizable header for your landing page. It includes properties for the application name, logo, navigation links, buttons, and an optional announcement section.
import Header from '@/components/blocks/header/Header.vue';

Props
The Header component accepts the following props
Required Props
- appName (
string)- Description: The name of the application.
- Default:
app.config.ts->appName
- links (Array of
LinkProps)- Description: An array of objects defining the navigation links.
Optional Props
- appLogo (
string|null)- Description: The URL of the application logo.
- Default:
app.config.ts->appLogo - Example:
/logo.png"
- buttons (Array of
ButtonProps)- Description: An array of objects defining the buttons to be displayed in the header.
- announcement (
object)- Description: An optional announcement section to be displayed in the header.
- Properties:
- title (
string)- Description: The title of the announcement.
- Example:
"New Feature Released!"
- backgroundClass (
string)- Description: A CSS class to style the background of the announcement.
- Example:
"bg-red-500"
- link (
string)- Description: A URL for more details about the announcement.
- Example:
"https://example.com/new-feature"
- title (
- showColorModeSwitch (
boolean)- Description: An optional dark/light mode switcher
- Default:
true