Move Readback

Move Readback is a copy-paste React component that stops helps prevent a private doc being moved into a public folder before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/move-readback
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsHelps prevent a private doc being moved into a public folder

Was this component page useful?

How do I install Move Readback?

pnpm dlx shadcn@latest add @bollard/move-readback

The files land in your project. They're yours to edit.

How do I use Move Readback in React?

move-readback-usage.tsx
import { MoveReadback, type MoveLocation } from "@/components/ui/move-readback"

<MoveReadback
  items={[{ name: "Q3 pricing.pdf", pathLinks: 4, directShares: 2 }]}
  from={FROM}
  to={DESTINATIONS[dest]}
  onCancel={() => setDest("public")}
  onMove={({ keepRedirect }) =>
    new Promise<void>((resolve) =>
      setTimeout(() => {
        setDone(`Moved to ${DESTINATIONS[dest].path.join(" / ")}${keepRedirect ? ", with a redirect at the old path" : ""}.`)
        resolve()
      }, 600),
    )
  }
/>

What input mistakes does Move Readback catch?

  • Moves that make an item visible to more people
  • Moves that remove access for people who had it
  • Path links that will break, with a keep-redirect option
  • Inherited settings (retention, sharing) that change at the destination

What props does Move Readback accept?

MoveReadback props
PropTypeDefault
items* (required)

Items being moved.

MoveItem[]—
from* (required)

Where they are now.

MoveLocation—
to* (required)

Where they are going.

MoveLocation—
onMove* (required)

Runs on confirm. `keepRedirect` is true when old links should keep working. Return a promise to show a pending state.

(options: { keepRedirect: boolean }) => void | Promise<void>—
onCancel

Called when the user cancels.

() => void—
canKeepRedirect

Offer to leave a redirect/shortcut at the old path. Omit when the product can't.

booleantrue
locale

BCP 47 locale for counts. Defaults to the viewer's.

string—
messages

Every visible string (see `MOVE_READBACK_MESSAGES`). The single-string props below still work and win.

Partial<MoveReadbackMessages>—
gainedText(visibility: string, total: string) => string—
lostText(count: string, kept: string) => string—
sameTextstring—
brokenText(count: string) => string—
redirectLabelstring—
redirectedText(count: string) => string—
moveLabel(what: string) => string—
widenLabel(what: string, count: number) => string—
title(what: string) => React.ReactNode—
pendingLabelstring—
cancelLabelstring—

* required. Also accepts the native props of <form> (className, aria-*, data-*…), passed through to it.

How is Move Readback accessible?

  • Form labelled by its title; paths are labelled ordered lists
  • Impact list is a polite live region; the arrow between states has an accessible name
  • Highlight animation is skipped under reduced motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Re-check permissions and apply the move server-side; recompute access after it.

  • Viewer counts and settings come from your props; it doesn't query permissions
  • Direct shares on the item are only as accurate as your data

What expensive mistakes does Move Readback stop?

Helps prevent a private doc being moved into a public folder

Also known as

move to · folder · permissions · sharing · google drive · notion · breadcrumbs · access

Field type

What dependencies does Move Readback require?

Move Readback facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameMove Readback
Registry identifier@bollard/move-readback
Install commandnpx shadcn@latest add @bollard/move-readback
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Move Readback

How does Move Readback protect destructive mutations?

Move Readback prevents a private doc being moved into a public folder. Enforces deliberate friction against Moves that make an item visible to more people, Moves that remove access for people who had it, Path links that will break, with a keep-redirect option, Inherited settings (retention, sharing) that change at the destination. Limitation: authorize move-readback mutations on the server.

How do I install move-readback with shadcn?

Run `npx shadcn@latest add @bollard/move-readback`. Sources added: registry/default/move-readback/move-readback.tsx. Package requirements: lucide-react.

What props customize Move Readback?

Move Readback accepts `items`, `from`, `to`, `onMove`, `onCancel`. Configures move to, folder, permissions behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of move-readback?

Viewer counts and settings come from your props; it doesn't query permissions. Direct shares on the item are only as accurate as your data Server requirement: Re-check permissions and apply the move server-side; recompute access after it.

How does Move Readback meet accessibility guidelines?

Form labelled by its title; paths are labelled ordered lists. Impact list is a polite live region; the arrow between states has an accessible name. Highlight animation is skipped under reduced motion. Minimizes errors: moved file made it public, move broke links.

Which components pair with Move Readback?