symmetric-wave
loading-ui/symmetric-waveFreeComponent
@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/symmetric-wave.jsonSource
1import { cn } from "@/lib/utils";23const SYMMETRIC_WAVE_PHASES = [1, 2, 3, 4, 5, 5, 4, 3, 2, 1] as const;45type SymmetricWaveProps = React.ComponentProps<"span"> & {6 block?: string;7 track?: string;8};910function SymmetricWave({11 className,12 block = "█",13 track = "░",14 ...props15}: SymmetricWaveProps) {16 return (17 <>18 <style>{`19 @keyframes loading-ui-symmetric-wave-1 {20 0%,21 100% {22 opacity: 1;23 }2425 12.5%,26 87.5% {27 opacity: 0.6;28 }2930 25%,31 75% {32 opacity: 0.3;33 }3435 37.5%,36 62.5%,37 50% {38 opacity: 0;39 }40 }4142 @keyframes loading-ui-symmetric-wave-2 {43 0%,44 100% {45 opacity: 0.6;46 }4748 12.5%,49 87.5% {50 opacity: 1;51 }5253 25%,54 75% {55 opacity: 0.6;56 }5758 37.5%,59 62.5% {60 opacity: 0.3;61 }6263 50% {64 opacity: 0;65 }66 }6768 @keyframes loading-ui-symmetric-wave-3 {69 0%,70 100% {71 opacity: 0.3;72 }7374 12.5%,75 87.5% {76 opacity: 0.6;77 }7879 25%,80 75% {81 opacity: 1;82 }8384 37.5%,85 62.5% {86 opacity: 0.6;87 }8889 50% {90 opacity: 0.3;91 }92 }9394 @keyframes loading-ui-symmetric-wave-4 {95 0%,96 100% {97 opacity: 0;98 }99100 12.5%,101 87.5% {102 opacity: 0.3;103 }104105 25%,106 75% {107 opacity: 0.6;108 }109110 37.5%,111 62.5% {112 opacity: 1;113 }114115 50% {116 opacity: 0.6;117 }118 }119120 @keyframes loading-ui-symmetric-wave-5 {121 0%,122 100%,123 12.5%,124 87.5% {125 opacity: 0;126 }127128 25%,129 75% {130 opacity: 0.3;131 }132133 37.5%,134 62.5% {135 opacity: 0.6;136 }137138 50% {139 opacity: 1;140 }141 }142 `}</style>143 <span144 role="status"145 className={cn(146 "relative inline-flex h-[1em] w-[10ch] overflow-hidden font-mono text-xl leading-none text-current select-none",147 className,148 )}149// … truncated
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 |
