CreateButton
Links to the create view of the current resource.
Installation
pnpm dlx shadcn@latest add @chelone/create-buttonLinks to the create view of the current resource.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | ReactNode | — | |
| label | string | — | |
| ref | Ref<HTMLAnchorElement> | — | |
| resource | string | — | |
| scrollToTop | boolean | — |