Merge Box

A React pull request merge panel with a success or warning callout for check status and a full width Merge button that stays disabled until checks pass.

src/registry/ui/merge-box.tsx/r/merge-box.json

Installation#

bash
npx shadcn@latest add @minidev/merge-box

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/merge-box.json

Usage#

tsx
import { MergeBox } from "@/components/ui/merge-box"

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

API reference#

MergeBox props
PropTypeDefault
canMergebooleantrue
classNamestring-

Dependencies#

npm

React only

Built from

All Developer tool UI components for React