kliping.pro
  • Docs
  • Explore
  • Builder
  • Directory
  • Colors
  • Typeset
Saved
Docs
  • Sections13
  • Installation5
  • Dark Mode4
  • Forms3
  • Registry6
  • Utilities2
  • More10
  • Components137
  • Accordion
  • Action Bar
  • AI Chat
  • AI Thread List
  • Alert
  • Alert Dialog
  • Angle Slider
  • Animated Grid Pattern
  • Aspect Ratio
  • Attachment
  • Avatar
  • Avatar Group
  • Badge
  • Badge Overflow
  • Banner
  • Border Beam
  • Breadcrumb
  • Bubble
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Checkbox Group
  • Chip
  • Circular Progress
  • Client Only
  • Collapsible
  • Color Picker
  • Color Swatch
  • Combobox
  • Combobox Advanced
  • Command
  • Compare Slider
  • Composition
  • Context Menu
  • Cropper
  • Data Grid
  • Data Table
  • Data Table Advanced
  • Date Picker
  • Dialog
  • Direction Provider
  • Dot Pattern
  • Drawer
  • Dropdown Menu
  • Editable
  • Empty
  • Field
  • File Upload
  • Form
  • FPS
  • Gauge
  • Hitbox
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Kbd Advanced
  • Key Value
  • Label
  • List
  • Listbox
  • Logos
  • Map
  • Marker
  • Marquee
  • Mask Input
  • Masonry
  • Media Player
  • Mention
  • Menubar
  • Message
  • Message Scroller
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Particles
  • Pending
  • Phone Input
  • Pin Input
  • Popover
  • Portal
  • Presence
  • Progress
  • QR Code
  • Questionnaire
  • Radio Group
  • Range Calendar
  • Rating
  • Relative Time Card
  • Resizable
  • Responsive Dialog
  • Scroll Area
  • Scroll Spy
  • Scroller
  • Segmented Input
  • Select
  • Selection Toolbar
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Software Purchase Card
  • Sonner
  • Sortable
  • Speed Dial
  • Spinner
  • Stack
  • Stat
  • Status
  • Stepper
  • Stepper Advanced
  • Swap
  • Switch
  • Table
  • Tabs
  • Tags Input
  • Tags Input Advanced
  • Textarea
  • Time Picker
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tour
  • Typography
  • Visually Hidden
  • Visually Hidden Input
  1. Docs
  2. Components
  3. Border Beam

Border Beam

PreviousNext

Sinar cahaya yang berjalan mengelilingi tepi sebuah elemen.

Upgrade to Pro

Unlimited projects and priority support.

Billed yearly. Cancel anytime.

Installation ​

pnpm dlx kliping@latest add border-beam

Usage ​

Taruh sebagai anak terakhir elemen yang ingin dikelilingi. Induknya harus relative, overflow-hidden, dan punya rounded-* — sinarnya mewarisi radius itu. Animasinya murni CSS (offset-path), tanpa JavaScript per frame.

vue
<script setup lang="ts">
import { BorderBeam } from '@/components/ui/border-beam'
</script>

<template>
  <Card class="relative overflow-hidden">
    …
    <BorderBeam :duration="8" :size="100" />
  </Card>
</template>

Requirements ​

Semua dipasang otomatis oleh kliping add; tabel ini untuk Anda yang memasang manual atau memeriksa project.

RequirementValue
ProjectVue 3.5+, Tailwind CSS v4, alias @ — disiapkan kliping init
Filescomponents/ui/border-beam/border-beam.vue
components/ui/border-beam/index.ts

API Reference ​

PropTypeDefaultDescription
size?number50The beam length, in pixels.
duration?number6The duration of one full loop, in seconds.
delay?number0Delays the start, in seconds.
colorFrom?string"#ffaa40"The color of the beam's head.
colorTo?string"#9c40ff"The color of the beam's tail.
reverse?booleanfalseReverses the direction of travel.
initialOffset?number0The beam's starting position along its path, 0–100.
borderWidth?number1The border width, in pixels.
Data attributeValue
[data-slot]"border-beam"

CSS Variables ​

Token tema yang dibaca komponen ini — ubah nilainya di CSS global (:root dan .dark, lihat Theming) untuk mengubah tampilannya tanpa menyentuh komponennya: --border.

Variabel khusus komponen ini — bisa ditimpa lewat style atau CSS Anda:

VariableValue
--border-beam-widthdihitung saat runtime
--color-fromprop colorFrom
--color-toprop colorTo

Credits ​

Berasal dari Magic UI (MIT, Copyright (c) Magic UI). Rantai lengkapnya di Credits.

PreviousBannerNext Breadcrumb

On This Page

InstallationUsageRequirementsAPI ReferenceCSS VariablesCredits

© 2026 Kliping. Free components are open source under the MIT License.

LicenseCreditsRoadmap