ui icon indicating copy to clipboard operation
ui copied to clipboard

Undocumented crash on Server component using 'asChild' prop

Open johnpgr opened this issue 1 year ago • 0 comments

When using <Button/> asChild prop inside a server component, a error is thrown, because it uses a ref. Would be nice to have a disclaimer that using this prop needs a "use client" in the docs: https://ui.shadcn.com/docs/components/button#link

Alternatively add "use client" to <Button/> component.

johnpgr avatar May 01 '23 14:05 johnpgr