Skip to content

ScifiPanelClip

WASM Powered
🧬Ported from [DataV]

ScifiPanelClip is a powerful shield-type container within the TechUI Scifi panel series.

It was ported and reconstructed from the open-source project @jiaminghi/data-view (original prototype dv-border-box-10). It serves as a heavy-duty enhanced version of DV5 (Zone). While it continues the classic "rectangle + four corners" layout in terms of structure, DV6 utilizes widened lines and high-saturation color fills at the four corners, significantly increasing the visual weight of the component.

This design grants the container an indestructible "Energy Shield" texture, as if providing strong physical isolation between the internal content and the external environment. It is ideal for carrying core business data, critical monitoring screens, or main control consoles, conveying psychological hints of safety and stability while ensuring clear boundaries.

Note: This component can be invoked via ScifiPanelDV6 or its semantic alias ScifiPanelClip.

Basic Usage

Default Form

By default, DV6 renders a high-contrast border: the base lines are thin, while the L-shaped brackets at the four corners are significantly thickened and highlighted.

vue
<template>
  <div style="width: 450px; height: 300px;">
    <ScifiPanelClip>
      <div class="shield-content">
        <h3>CORE SYSTEM</h3>
        <p>Protection Level: MAX</p>
      </div>
    </ScifiPanelClip>
  </div>
</template>

Visual Variants

The design focus of DV6 is on "robustness," so its variant configurations are mainly used to adjust visual impact.

Structural Breakdown (Structure)

You can independently control the base border lines (borderd) and the heavy corner decorations (decoration).

  • borderd: false: Hides the connecting lines, keeping only the heavy brackets at the four corners to create an open layout.
  • decoration: false: Hides the brackets at the four corners, keeping only the base rectangular lines, instantly transforming it into a minimalist border.
vue
<template>
  <div class="grid">
    <ScifiPanelClip :borderd="false">
      <div class="p-4">Open Shield</div>
    </ScifiPanelClip>

    <ScifiPanelClip :decoration="false">
      <div class="p-4">Closed Line</div>
    </ScifiPanelClip>
  </div>
</template>

Industrial Reinforcement (Heavy Industrial)

Combined with borderWidth and background blur, you can create a very thick industrial panel style.

vue
<template>
  <ScifiPanelClip 
    :borderWidth="3"
    :backgroundBlur="true"
    :backgroundOpacity="0.6"
  >
    <div class="content">ARMORED GLASS</div>
  </ScifiPanelClip>
</template>

Energy Overload (Glow)

When glow is enabled, the thickened brackets at the four corners produce a strong halo, as if the shield is fully charged.

vue
<template>
  <ScifiPanelClip 
    :glow="true" 
    className="dv6-overload"
  />
</template>

CSS Variable

The color logic of DV6 is perfectly suited for high-contrast color schemes.

Case Study: Golden Compass Style

This style uses golden yellow as the highlight decoration and deep brown as the background, creating a visual experience suitable for royalty or high-level commanders.

vue
<template>
  <ScifiPanelClip 
    className="panel-gold-shield"
    :backgroundOpacity="0.8"
    :glow="true"
  >
    <div class="command-center">
      COMMANDER AUTHORIZED
    </div>
  </ScifiPanelClip>
</template>

<style lang="less">
.panel-gold-shield {
  /* Base Border: Dark Gold/Bronze */
  --sf-panel-bd: #92400e;
  
  /* Powerful Brackets: Bright Gold */
  --sf-panel-hlite: #f59e0b;
  
  /* Background: Deep Brown */
  --sf-panel-bg: rgba(69, 26, 3, 0.85);
  
  /* Glow: Golden light */
  --sf-panel-glow: #fbbf24;
}
</style>

API Reference

Props

PropertyDescriptionTypeDefault
decorationDecoration Toggle. Whether to show the heavy L-shaped brackets at the cornersBooleantrue
borderdBorder Toggle. Whether to show the base connecting linesBooleantrue
borderWidthBase line width (px)Number
backgroundOpacityBackground opacity (0-1)Number
backgroundBlurWhether to enable background glassmorphismBooleanfalse
glowWhether to enable outer glowBooleanfalse
classNameCustom container class nameString

CSS Variables

You can override the following variables at the component's parent level or via className to control the component's color scheme and appearance.

Variable NameDescriptionDefault Reference
--sf-panel-bgPanel background fill colorvar(--scifi-bg)
--sf-panel-bgopBackground opacityvar(--cpt-panel-bgop, 1)
--sf-panel-bdBorder line colorvar(--scifi-bd)
--sf-panel-bdwBorder line widthvar(--cpt-panel-bdw, 1px)
--sf-panel-fcTitle text colorvar(--scifi-fc)
--sf-panel-hlitehighlight colorvar(--scifi-hlite)
--sf-panel-focusFocus colorvar(--scifi-focus)
--sf-panel-glowInner glow colorvar(--scifi-focus)
--sf-panel-glowopInner glow opacityvar(--cpt-panel-glowop, .5)
--sf-panel-shadowContainer shadowvar(--shadow-weak)
--sf-panel-scaleOverall scaling ratiovar(--cpt-panel-scale)

Credits

This component is ported from the open-source library jiaminghi/data-view. On this foundation, deep customization has been performed based on the TechUI global theme, and numerous APIs have been added to significantly enhance the component's capabilities.

We would like to express our sincere gratitude and respect to the author, JiaMing!

Released under the MIT License.