radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
3.58k stars 207 forks source link

docs: replace import of custom 'ListItem' component with inline html #642

Closed yakir-reznik closed 4 days ago

yakir-reznik commented 4 days ago

๐Ÿ”— Linked issue

#292 Similar to #232

โ“ Type of change

๐Ÿ“š Description

Resolves #292

The example code for the NavigationMenu contains an import of a custom component (ListItem).

This custom component will not be present on the user's project and will not be installed when the users installs the NavigationMenu component with the CLI (or by copy-pasting the code to their local project).

The import of the custom component causes the NavigationMenu to throw on when installed and used for the first time.

This error is also replicated when trying to run the example code in StackBlitz.

๐Ÿ“ธ Screenshots (if appropriate)

stack-blitz-screenshot

๐Ÿ“ Checklist