Saturation UIsaturation UI
DocsComponentsBlocks
⌘K

Getting Started

IntroductionInstallationTheming

Components

AccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendarCardChartCheckboxCollapsibleComboboxCommandContext MenuData TableDate PickerDialogDropdown MenuEmptyFieldGlow EffectInputInput GroupItemKbdMenubarNovel EditorPaginationProgressive BlurProgressSelectSheetSkeletonSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Saturation UIsaturation UI
DocsComponentsBlocks
⌘K

Getting Started

IntroductionInstallationTheming

Components

AccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendarCardChartCheckboxCollapsibleComboboxCommandContext MenuData TableDate PickerDialogDropdown MenuEmptyFieldGlow EffectInputInput GroupItemKbdMenubarNovel EditorPaginationProgressive BlurProgressSelectSheetSkeletonSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Components
/
Border Trail

Border Trail

An animated border effect that travels around the perimeter of an element.

Examples

Basic

A simple border trail effect on a card.

Hover to see the trail

Card with Loading State

Border trail with a loading skeleton inside.

Custom Colors

Border trail with custom gradient colors and glow effect.

Custom gradient trail

Button with Trail

Border trail applied to a button element.

API Reference

PropTypeDefaultDescription
classNamestring-Additional CSS classes for the trail element
sizenumber60Size of the trail element in pixels
transitionTransition-Custom Framer Motion transition configuration
onAnimationComplete() => void-Callback when animation completes
styleReact.CSSProperties-Inline styles for the trail element

On This Page

  • Examples
    • Basic
    • Card with Loading State
    • Custom Colors
    • Button with Trail
  • API Reference

Deploy your Saturation UI app

Build beautiful, saturated interfaces with our component library.

Deploy to Vercel for the best performance and developer experience.