Updated
Live Line
ProCustomize
Interval1000ms
Points60
Accent
Installation
ProLive Line is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/live-line
Loading your installation…
Usage
import { LiveLine } from "@/components/uibrik/live-line/live-line";<LiveLine title="Visitors right now" interval={1000} points={60} unit="visitors" accent="" format={{}} onPausedChange={(paused) => {}} // value={0} // paused={false}/>Where to use Live Line
Real-time monitoring
A line that scrolls smoothly as samples stream in suits server and API metrics.
Pairs with Status Dashboard
Price tickers
Freezing under the pointer lets traders read any moment while data keeps arriving.
Pairs with Stock Chart
IoT and sensors
Continuous streaming fits temperature, power and device readings.
Props
LiveLine- title
- Type string
- "Visitors right now"
- Names the metric.
- interval
- Type number
- 1000
- Time between samples.
- points
- Type number
- 60
- Samples across the plot.
- unit
- Type string
- "visitors"
- Sits beside the headline.
- accent
- Type string
- ""
- Line colour. Empty uses the chart palette.
- value
- Type number
- –
- Latest reading, sampled once every interval. Leave out to show simulated traffic.
- format
- Type Intl.NumberFormatOptions
- {}
- Formats every number, e.g. { style: "percent" }.
- paused
- Type boolean
- –
- Stops sampling. Leave out to let the Live button manage it.
- onPausedChange
- Type (paused: boolean) => void
- –
- Called when the Live button is pressed.
- className
- Type string
- –
- Classes for the outer shell.