themesberg/flowbite-svelte

BottomNavItem missing property type definition "btnClass".

w3rafu opened this issue · 0 comments

Describe the bug

The BottomNavItem from this example (https://flowbite-svelte.com/docs/components/bottom-navigation#Application_bar_example) triggers a type error for the btnClass property.

BottomNavItem component does not explicitly export a btnClass property. However, it uses btnClass internally through the $$props object.

Interested in PR.

Reproduction

Screen Shot 2024-11-05 at 8 08 55 AM

(Object literal may only specify known properties, and '"btnClass"' does not exist in type 'Properties<({ btnName?: string | undefined; appBtnPosition?: "left" | "middle" | "right" | undefined; activeClass?: string | undefined; exact?: boolean | undefined; spanClass?: string | undefined; } & Omit<...> & { ...; }) | ({ ...; } & ... 1 more ... & { ...; }), { ...; }>'.)

Flowbite version and System Info

System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
    Memory: 1.61 GB / 24.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 20.15.0 - /usr/local/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 10.9.0 - /usr/local/bin/npm
    pnpm: 9.12.3 - /usr/local/bin/pnpm
    Watchman: 2023.01.30.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 122.0.6261.129
    Firefox Nightly: 108.0.2
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.7.4 
    flowbite-svelte: ^0.47.3 => 0.47.3 
    svelte: ^5.0.0 => 5.1.9 
    vite: ^5.0.3 => 5.4.10