Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listgroup Example has a type error #1272

Open
mkmoisen opened this issue Mar 4, 2024 · 0 comments
Open

Listgroup Example has a type error #1272

mkmoisen opened this issue Mar 4, 2024 · 0 comments

Comments

@mkmoisen
Copy link

mkmoisen commented Mar 4, 2024

Describe the bug

The example for Listgroup with links results in a typing error in VSCode, but the application runs fine.

The {item.name} shows an error for name:

Property 'name' does not exist on type 'string'

Reproduction

<script> import { Listgroup } from 'flowbite-svelte'; let links = [ { name: 'Accordions', href: '/docs/components/accordion', current: true }, { name: 'Alerts', href: '/docs/components/alert' }, { name: 'Badges', href: '/docs/components/badge' }, { name: 'Breadcrumbs', href: '/docs/components/breadcrumb', attrs: {target: '_blank'} } ]; </script> {item.name}

Flowbite version and System Info

latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant