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

Allow NavItem to accept regular element props (e.g. onClick) #280

Open
JakeSidSmith opened this issue Sep 26, 2018 · 1 comment
Open

Allow NavItem to accept regular element props (e.g. onClick) #280

JakeSidSmith opened this issue Sep 26, 2018 · 1 comment
Labels

Comments

@JakeSidSmith
Copy link
Contributor

Currently NavItem does not accept any props other than the few defined in it's interface.

It might make sense to allow people to give it regular props.

@JakeSidSmith
Copy link
Contributor Author

Update: this is actually a bug.

Accepts regular html attributes
https://github.com/dabapps/roe/blob/master/src/ts/components/navigation/nav-item.tsx#L6

But does not apply ...remainingProps

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

No branches or pull requests

1 participant