Timestamped log lines tagged by level in info, warn, error, and ok colors.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Terminal7 } from "@/components/beste/piece/terminal7";
<Terminal7
logs={[
{
"time": "12:04:01",
"level": "ok",
"message": "Server ready on port 3000"
},
{
"time": "12:04:03",
"level": "info",
"message": "Compiled /dashboard in 240ms"
},
{
"time": "12:04:06",
"level": "warn",
"message": "Slow query took 412ms"
},
{
"time": "12:04:09",
"level": "error",
"message": "Failed to reach cache"
}
]}
/>Dark shell line with an emerald prompt, command text, and a blinking block cursor.
Test run output with pass and fail markers and a totals bar.
Unified diff with added and removed lines tinted green and red.
Window-chrome shell showing a command and its output ending in a success line.
Single indeterminate line with a spinner and a cancel hint.
Shell prompt with a git branch segment and a clean or dirty status marker.