pnpm dlx shadcn@latest add @saturation-ui/sync-buttonTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
| Prop | Type | Default | Description |
|---|---|---|---|
onSync | () => Promise<void> | — | Async function called when the button is clicked. The button spins until the promise resolves. |
label | string | — | Text label. Omit for icon-only mode. |
shortcut | string | — | Single character keyboard shortcut shown as a Kbd chip when idle, hidden while syncing. |
syncing | boolean | — | Controlled syncing state — use when the parent manages the loading state externally. |
On This Page