-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
How to customize a component in :next #6430
Comments
The answer is in the page you linked to... however there may be some gaps in the API. Looks like you found one. 😄 Feel free to submit that as an issue following the issue template. PRs welcome! 👍 Also: Question? This helps us keep issues for... issues. 😄 Thanks! |
So, just to make sure that I understand it correctly For example, based on the Tab.js stylesheet does it mean that it will have all this props? rootClassName
rootLabelIconClassName
rootAccentClassName
rootAccentSelectedClassName
rootAccentDisabledClassName
rootInheritClassName
rootInheritSelectedClassName
rootInheritDisabledClassName
labelClassName Or would that be customized by passing a root: {
/* some css */
}
rootLabelIcon: {
/* some css */
}
rootAccent: {
/* some css */
}
rootAccentSelected: {
/* some css */
}
rootAccentDisabled: {
/* some css */
}
rootInherit: {
/* some css */
}
rootInheritSelected: {
/* some css */
}
rootInheritDisabled: {
/* some css */
}
label: {
/* some css */
} |
@rogeliog As it stands, for root, you would build and pass in a set of classes through the We can't override the stylesheet array with a prop, because it's created and written to the DOM on mount. What's missing is |
The next branch looks great!
What is the proposed solution for customizing components in the
:next
branchFor example, if I need the label of a
Tab
not beuppercase
Tab.js#L165, how could I achieve this?xxxClassName
(as mentioned here) be provided for every customizable item (i.elabelClassName
)?classes
prop that merges with the bases classes?Thanks a lot!
The text was updated successfully, but these errors were encountered: