pulse
loading-ui/pulseFreeComponent
@loading-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by @loading-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://loading-ui.com/r/pulse.jsonSource
1import { cn } from "@/lib/utils";23function Pulse({ className, ...props }: React.ComponentProps<"span">) {4 return (5 <>6 <style>{`7 @keyframes loading-ui-thin-pulse {8 0%,9 100% {10 transform: scale(0.95);11 opacity: 0.8;12 }1314 50% {15 transform: scale(1.05);16 opacity: 0.4;17 }18 }19 `}</style>20 <span21 role="status"22 className={cn("relative inline-block shrink-0", className)}23 {...props}24 >25 <span26 aria-hidden="true"27 className="absolute inset-0 rounded-full border-2 border-current"28 style={{29 animation:30 "loading-ui-thin-pulse var(--duration, 1.5s) ease-in-out infinite",31 }}32 />33 <span className="sr-only">Loading</span>34 </span>35 </>36 );37}3839export { Pulse };
Files it writes
More from @loading-ui
All 50 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordion-loaderaccordion-loader | @loading-ui | Components | Free | no deps | |
| analyzing-imageanalyzing-image | @loading-ui | Components | Free | 1 dep | |
| arcarc | @loading-ui | Components | Free | no deps | |
| barsbars | @loading-ui | Components | Free | no deps | |
| bobbing-dotsbobbing-dots | @loading-ui | Components | Free | 1 dep | |
| bouncing-dotsbouncing-dots | @loading-ui | Components | Free | no deps | |
| classicclassic | @loading-ui | Components | Free | no deps | |
| clock-ringclock-ring | @loading-ui | Components | Free | no deps |
