CloneButton

Opens the create view pre-filled with a copy of the current record. It needs create access, as <CreateButton> does.

Installation

pnpm dlx shadcn@latest add @chelone/clone-button

Opens the create view pre-filled with a copy of the current record. It needs create access, as <CreateButton> does.

Props

PropTypeDefaultDescription
classNamestring—
iconReactNode—
labelstring—
recordLooseRecord—
refRef<HTMLAnchorElement>—
resourcestring—
scrollToTopboolean—