saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Border Trail

Border Trail

Animated border trail effect.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/border-trail.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { BorderTrail } from "@/components/ui/border-trail"
<div className="relative">
  <BorderTrail />
  Content here
</div>

Examples

Loading State

Loading...
Border trail with skeleton.

Custom Colors

Loading...
Custom gradient colors.

Button

Loading...
Border trail on a button.

API Reference

PropTypeDefaultDescription
sizenumber60Size of the trail element.
durationnumber5Animation duration in seconds.
PreviousBlur FadeNextBreadcrumb

On This Page

  • Installation
  • Usage
  • Examples
  • Loading State
  • Custom Colors
  • Button
  • API Reference

Animated Border

Hover to see the trail

Teal Gradient
Warm Gradient
Purple-Pink