Skip to content

ScifiHeaderEcho

WASM Powered
👑Pioneer

Scifi Header - Echo is a streamlined dynamic header component in the TechUI Scifi series.

Its design inspiration comes from "Aircraft Wings" and "Acoustic Echo". The decorations on both sides present a unique layered form of outward extension and upward lifting. Visually, it not only possesses strong aerodynamic beauty but also carries a sense of light levitation.

This form has strong visual guidance. Like a pair of spread wings, it naturally focuses the user's vision from the top and guides it downward to the content area. It is very suitable as a secondary header at the top of a page, a header for long chart blocks, or any scenario requiring emphasized smooth transitions rather than forceful division.

Tip: This component can be invoked via ScifiHeaderA3 or its semantic alias ScifiHeaderEcho.

Basic Usage

Default Form (Default)

In the default state, A3 presents a standard flying wing structure. The title content is passed through the default slot.

vue
<template>
  <div class="box">
    <ScifiHeaderEcho>Flight Dynamics</ScifiHeaderEcho>
  </div>
</template>

Appearance Variant (Decoration Alt)

When decorationAlt is enabled, the solid wing tips transform into hollow line structures, reducing visual weight. This is more suitable for hovering over complex maps or 3D scenes.

vue
<template>
  <ScifiHeaderEcho :decorationAlt="true">
    Map Overlay
  </ScifiHeaderEcho>
</template>

Background Opacity

A3 supports fine control of the background color block's opacity via backgroundOpacity, allowing it to blend better into dark backgrounds.

vue
<template>
  <ScifiHeaderEcho 
    :scale="0.7"
    :backgroundOpacity="0.6"
    :decorationColorAlt="true"
  >
    Sub System
  </ScifiHeaderEcho>
</template>

Advanced Configuration

Custom Styles

The component exposes a full set of CSS variables. You can easily modify the color scheme to match specific themes (such as a red warning theme) via a custom class name.

vue
<template>
  <ScifiHeaderEcho className="sfh-danger">
    WARNING
  </ScifiHeaderEcho>
</template>

<style lang="less">
.sfh-danger {
  --sf-header-bg: #4a0000;      /* Dark red background */
  --sf-header-bg_alt: #ff0000;  /* Bright red auxiliary */
  --sf-header-bd: #ff4d4f;      /* Red border */
  --sf-header-fc: #ffffff;
  --sf-header-fc_alt: #eba447;
  --sf-header-glow: #ff0000;    /* Red glow */
  --sf-header-hlite: #b81f14;
  --sf-header-focus: #eba447;
}
</style>

API Reference

Props

Property NameDescriptionTypeDefaultA3 Feature Remarks
widthTotal header width (px). WASM will redraw paths based on this valueNumbernullAlso supports WASM dynamic redrawing.
decorationWhether to show the decorative strip at the bottomBooleantrue
decorationAltAppearance variantBooleanfalseSignificant impact. Switches solid flying wings to hollow line flying wings.
decorationColorAltWhether to enable variant coloring for decorationsBooleanfalse
gradientBackgroundWhether to enable background gradient colorBooleantrue
gradientReverseWhether to reverse the direction of the background gradientBooleanfalse
backgroundOpacityBackground opacityNumber1Decimal between 0-1. A3 is often used in semi-transparent overlay scenarios.
glowWhether to enable SVG outer glow filterBooleanfalse
glowOpacityOpacity of the outer glow (0-1)Number
shadowTypeShadow mode: 'drop', 't3d', 'none'String'drop'
scaleOverall component scaling ratioNumber1
classNameCustom container class nameString

Slots

Slot NameDescription
defaultTitle text content

CSS Variables

Variable NameDescriptionDefault Reference
--sf-header-lhHeader line height / Base height60px
--sf-header-ffFont FamilyImpact
--sf-header-bgMain background color (Gradient start)var(--scifi-header-bg)
--sf-header-bg_altAuxiliary background color (Gradient end)var(--scifi-header-bg_alt)
--sf-header-bgopBackground opacityvar(--cpt-header-bgop, 1)
--sf-header-bdBorder line colorvar(--scifi-bd)
--sf-header-bdwBorder line widthvar(--scifi-bdw, 1px)
--sf-header-fcMain text colorvar(--scifi-header-fc)
--sf-header-fc_altAuxiliary text / Decoration element colorvar(--scifi-header-fc_alt)
--sf-header-hliteHighlight Color.var(--scifi-header-hlite)
--sf-header-focusFocus Color.var(--scifi-header-focus)
--sf-header-glowInner glow colorvar(--scifi-hlite)
--sf-header-glowopInner glow opacityvar(--cpt-header-glowop, var(--shadow-inset-op, .5))
--sf-header-shadowContainer shadowvar(--shadow-weak)
--sf-header-scaleOverall scaling ratio (CSS level)var(--cpt-header-scale, 1)

Released under the MIT License.