terminal
loading-ui/terminalFreeComponent
@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/terminal.jsonSource
1import { cn } from "@/lib/utils";23type TerminalProps = React.ComponentProps<"span"> & {4 prompt?: string;5};67function Terminal({ className, prompt = ">", style, ...props }: TerminalProps) {8 return (9 <>10 <style>{`11 @keyframes loading-ui-terminal-blink {12 0%,13 100% {14 opacity: 1;15 }1617 50% {18 opacity: 0;19 }20 }21 `}</style>22 <span23 role="status"24 className={cn(25 "inline-flex items-center gap-[0.25em] font-mono",26 className,27 )}28 style={style}29 {...props}30 >31 <span aria-hidden="true">{prompt}</span>32 <span33 aria-hidden="true"34 className="inline-block w-[0.5em] bg-current"35 style={{36 height: "1em",37 animation:38 "loading-ui-terminal-blink var(--duration, 1s) step-end infinite",39 }}40 />41 <span className="sr-only">Loading</span>42 </span>43 </>44 );45}4647export { Terminal };
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 |
