Publish Bar

React publish bar with a draft, scheduled or published status badge, an autosave note, and Preview and Publish buttons wired to an onPublish callback.

src/registry/ui/publish-bar.tsx/r/publish-bar.json
draft

Changes save automatically

Draft

Installation#

bash
npx shadcn@latest add @minidev/publish-bar

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/publish-bar.json

Usage#

tsx
import { PublishBar } from "@/components/ui/publish-bar"

export function Example() {
  return (
    <PublishBar />
  )
}

API reference#

PublishBar props
PropTypeDefault
status"draft" | "published" | "scheduled""draft"
onPublish() => void-
classNamestring-

Dependencies#

npm

React only

Examples#

All kanban, timeline and workflow components