Components/GradientBorder
Universal Component

GradientBorder

Animated gradient border wrapper for highlighting content containers.

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

GradientBorder

Animated gradient border wrapper for highlighting content containers while keeping the inner content layout under your control.

Basic Usage

GradientBorder

Demo will load when visible.
<template>
  <TxGradientBorder :padding="16" :border-radius="16">
    <div style="background: var(--tx-bg-color); border-radius: 12px; padding: 16px;">
      Content
    </div>
  </TxGradientBorder>
</template>

API

Props

PropTypeDefaultDescription
asstring'div'Root element tag rendered by the wrapper.
borderWidthstring | number'2px'Gradient border width; numeric values are normalized to pixels.
borderRadiusstring | number'12px'Border radius applied to the wrapper and gradient layer.
paddingstring | number'12px'Inner content padding; numeric values are normalized to pixels.
animationDurationnumber4Rotation animation duration in seconds.