113k

April 2026 - Pointer Cursor

Add cursor pointer behavior for buttons during project setup.

You can now enable cursor: pointer for buttons when initializing a project.

pnpm dlx shadcn@latest init --pointer

This adds the following CSS to your global CSS file:

globals.css
@layer base {
  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }
}

The --pointer option is not part of preset codes. It is applied as a project setup option, similar to --rtl.