Status bar

Bottom information strip showing document metadata, cursor position, and zoom controls.

Install

npx shadcn@latest add https://substrate.georgedrury.co.uk/r/status-bar
npx shadcn@latest add https://substrate.georgedrury.co.uk/r/zoom-controls

Examples

Default

1200 × 8003 objects
X: 583 Y: 151
"use client"

import { useState } from "react"

Components

StatusBar

ComponentDescription
StatusBarFixed-height strip with border-top
StatusBarSectionAligned group (left, center, or right)
StatusBarItemInline text item with tabular-nums
StatusBarSeparatorThin vertical divider

ZoomControls

PropTypeDefaultDescription
zoomnumber—Current zoom level (1 = 100%)
onZoomChange(zoom: number) => void—Called when zoom changes
onZoomToFit() => void—Optional fit-to-view callback
minnumber0.1Minimum zoom
maxnumber10Maximum zoom
stepnumber0.25Zoom increment per click