Border Trail Textarea Demo
sora-ui/demo-border-trail-textareaFreeComponent
Textarea with a continuous gradient border trail.
Install it
npx shadcn@latest add https://ui.soralabs.io.vn/r/demo-border-trail-textarea.jsonSource
1"use client";23import { BorderTrail } from "@/components/sora-ui/effects/border-trail";45export interface BorderTrailTextareaProps {6 duration?: number;7 size?: number;8}910/** motion-primitives `border-trail-textarea` */11export function BorderTrailTextarea({12 duration = 5,13 size = 120,14}: BorderTrailTextareaProps) {15 return (16 <div className="relative h-[160px] w-[260px] overflow-hidden rounded-md border border-zinc-950/10 bg-white text-zinc-700 outline-hidden dark:border-zinc-50/20 dark:bg-zinc-950 dark:text-zinc-300">17 <textarea className="h-full w-full resize-none rounded-md bg-transparent px-4 py-3 text-sm outline-hidden" />18 <BorderTrail19 className="bg-linear-to-l from-blue-200 via-blue-500 to-blue-200 dark:from-blue-400 dark:via-blue-500 dark:to-blue-700"20 size={size}21 transition={{22 duration,23 ease: "linear",24 repeat: Number.POSITIVE_INFINITY,25 }}26 />27 </div>28 );29}3031export default BorderTrailTextarea;
What it pulls in
Other registry items
Files it writes
More from Sora UI
All 97 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Sora UI | Components | Free | 2 deps | |
| Border Trailborder-trail | Sora UI | Components | Free | 1 dep | |
| Bottom Sheetbottom-sheet | Sora UI | Components | Free | 2 deps | |
| Cursor Bubblecursor-bubble | Sora UI | Components | Free | 2 deps | |
| Cursor Trail Revealcursor-trail-reveal | Sora UI | Components | Free | 1 dep | |
| Custom Cursorcustom-cursor | Sora UI | Components | Free | 2 deps | |
| Accordion Demodemo-accordion | Sora UI | Components | Free | no deps | |
| Border Trail Demodemo-border-trail | Sora UI | Components | Free | no deps |
