We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/ctxhou/react-tabtab#make-your-own-style
The document says:
Second: extend style and export it import {styled} from 'react-tabtab'; let {TabListStyle, ActionButtonStyle, TabStyle, PanelStyle} = styled; TabListStyle = styled(TabListStyle)` // write css `; TabStyle = styled(TabStyle)` // write css `; ActionButtonStyle = styled(ActionButtonStyle)` // write css `; PanelStyle = styled(PanelStyle)` // write css `; // need to follow this object naming module.exports = { TabList: TabListStyle, ActionButton: ActionButtonStyle, Tab: TabStyle, Panel: PanelStyle }
Second: extend style and export it
import {styled} from 'react-tabtab'; let {TabListStyle, ActionButtonStyle, TabStyle, PanelStyle} = styled; TabListStyle = styled(TabListStyle)` // write css `; TabStyle = styled(TabStyle)` // write css `; ActionButtonStyle = styled(ActionButtonStyle)` // write css `; PanelStyle = styled(PanelStyle)` // write css `; // need to follow this object naming module.exports = { TabList: TabListStyle, ActionButton: ActionButtonStyle, Tab: TabStyle, Panel: PanelStyle }
But styled is an object, so you cannot use this way. I used following way:
styled
import styled from 'styled-components' import {styled as tabtabStyle} from 'react-tabtab' let {TabListStyle, ActionButtonStyle, TabStyle, PanelStyle} = tabtabStyle; TabListStyle = styled(TabListStyle)` // write css `; TabStyle = styled(TabStyle)` // write css `; ActionButtonStyle = styled(ActionButtonStyle)` // write css `; PanelStyle = styled(PanelStyle)` // write css `; // need to follow this object naming module.exports = { TabList: TabListStyle, ActionButton: ActionButtonStyle, Tab: TabStyle, Panel: PanelStyle }
Please update the document. 😄
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/ctxhou/react-tabtab#make-your-own-style
The document says:
But
styled
is an object, so you cannot use this way. I used following way:Please update the document. 😄
The text was updated successfully, but these errors were encountered: