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

Optional Event Callbacks for Nav #26

Open
TheBigSasha opened this issue Sep 3, 2023 · 0 comments
Open

Optional Event Callbacks for Nav #26

TheBigSasha opened this issue Sep 3, 2023 · 0 comments

Comments

@TheBigSasha
Copy link
Owner

Add optional event callbacks to the nav component so that people can use optional client side logic to programatically control the nav, IE, pass a callback of the format

(menuSwitchID: string) => void

Which would be called whenever clicking off of the nav, on the button, or other reasonable slots.

We should also somehow see if we can expose the generated ID for the navbar closer to consumers of the library, perhaps with a vite extension, exporting a Typescript definition like TBSUI-SSR-NAVBAR-TOGGLE-ID.

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