You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
We want to be able to pass a component to the header property of the Tab component so that we can edit the title.
Would this be as simple as changing this in the interface? interface TabProps { id: string; header: string | object; ...
or would it need to be React.ElementType rather than object?
The text was updated successfully, but these errors were encountered:
MarvDann
changed the title
Change header prop type on Tab from string to string | object
Change header prop type on Tab to accept elements and strings
Apr 26, 2019
Hi @MarvDann , thanks for your interest. It has been a while since I've touched this, but that seems perfectly reasonable -- do you fancy putting together a PR? :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We want to be able to pass a component to the header property of the Tab component so that we can edit the title.
Would this be as simple as changing this in the interface?
interface TabProps { id: string; header: string | object; ...
or would it need to be React.ElementType rather than object?
The text was updated successfully, but these errors were encountered: