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-buttonOpens the create view pre-filled with a copy of the current record. It needs create access, as <CreateButton> does.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| icon | ReactNode | — | |
| label | string | — | |
| record | LooseRecord | — | |
| ref | Ref<HTMLAnchorElement> | — | |
| resource | string | — | |
| scrollToTop | boolean | — |