animated-beam-multiple-demo
jolyui-ui/animated-beam-multiple-demoFreeExample
jolyui/ui publishes no description for this item.
Install it
npx shadcn@latest add https://jolyui.dev/r/animated-beam-multiple-demo.jsonSource
1import {2 Database,3 Layout,4 Lock,5 Package,6 Server,7 Smartphone,8} from "lucide-react";9import React from "react";10import {11 AnimatedBeam,12 BeamContainer,13 BeamNode,14} from "@/registry/default/ui/animated-beam";1516export default function AnimatedBeamMultipleDemo() {17 const containerRef = React.useRef<HTMLDivElement>(null);18 const clientRef = React.useRef<HTMLDivElement>(null);19 const gatewayRef = React.useRef<HTMLDivElement>(null);20 const authRef = React.useRef<HTMLDivElement>(null);21 const ordersRef = React.useRef<HTMLDivElement>(null);22 const inventoryRef = React.useRef<HTMLDivElement>(null);23 const dbRef = React.useRef<HTMLDivElement>(null);2425 return (26 <BeamContainer27 ref={containerRef}28 className="mx-auto flex w-full items-center justify-center gap-12 rounded-xl border bg-background p-10 shadow-sm"29 >30 {/* Client Layer */}31 <div className="flex flex-col items-center gap-2">32 <BeamNode33 ref={clientRef}34 className="h-14 w-14 border-2 border-blue-500/20 bg-blue-500/10"35 >36 <Smartphone className="h-6 w-6 text-blue-600" />37 </BeamNode>38 <span className="font-medium text-[10px] text-muted-foreground uppercase tracking-wider">39 Client40 </span>41 </div>4243 {/* Gateway Layer */}44 <div className="flex flex-col items-center gap-2">45 <BeamNode46 ref={gatewayRef}47 className="h-16 w-16 border-2 border-purple-500/20 bg-purple-500/10"48 >49 <Server className="h-8 w-8 text-purple-600" />50 </BeamNode>51 <span className="font-medium text-[10px] text-muted-foreground uppercase tracking-wider">52 Gateway53 </span>54 </div>5556 {/* Services Layer */}57 <div className="flex flex-col gap-6">58 <div className="flex items-center gap-3">59 <BeamNode60 ref={authRef}61 className="h-12 w-12 border-2 border-emerald-500/20 bg-emerald-500/10"62 >63 <Lock className="h-5 w-5 text-emerald-600" />64 </BeamNode>65 <span className="font-medium text-[10px] text-muted-foreground uppercase tracking-wider">66 Auth67 </span>68 </div>6970 <div className="flex items-center gap-3">71 <BeamNode72 ref={ordersRef}73 className="h-12 w-12 border-2 border-amber-500/20 bg-amber-500/10"74 >75 <Package className="h-5 w-5 text-amber-600" />76 </BeamNode>77// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from jolyui/ui
All 199 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| ai-prompt-box-demoai-prompt-box-demo | jolyui/ui | Examples | Free | no deps | |
| ai-prompt-box-loading-demoai-prompt-box-loading-demo | jolyui/ui | Examples | Free | no deps | |
| animated-beam-bidirectional-demoanimated-beam-bidirectional-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-beam-curved-demoanimated-beam-curved-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-beam-demoanimated-beam-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-table-basic-demoanimated-table-basic-demo | jolyui/ui | Examples | Free | no deps | |
| animated-table-column-demoanimated-table-column-demo | jolyui/ui | Examples | Free | no deps | |
| animated-table-expand-demoanimated-table-expand-demo | jolyui/ui | Examples | Free | no deps |
