mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
bea7d30536ac4ed8065ecb53191da14d1830ed2b
Fix incorrect named import syntax for Next.js Link component.
Changed from:
import { Link } from "next/link"
To correct default import:
import Link from "next/link"
Next.js Link is a default export, not a named export. The incorrect
syntax causes TypeScript error:
'Module "next/link" has no exported member "Link"'
Affected files:
- Button component docs
- Badge component docs
- Breadcrumb component docs (v4 and www)
- Navigation Menu component docs
Fixes issue where users copying code snippets get immediate errors.
Co-authored-by: serhatx1 <armonikadijital@gmail.com>
shadcn/ui
Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. Use this to build your own component library.
Documentation
Visit http://ui.shadcn.com/docs to view the documentation.
Contributing
Please read the contributing guide.
License
Licensed under the MIT license.
Description
Languages
TypeScript
89.4%
MDX
7%
CSS
3.5%
JavaScript
0.1%
