-
Notifications
You must be signed in to change notification settings - Fork 598
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
Add className prop support to TreeView #4512
Conversation
🦋 Changeset detectedLatest commit: dad7821 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
The PR was updated with Copilot Workspace (v0.17). For more details, open the Copilot Workspace session. |
The PR was updated with Copilot Workspace (v0.17). For more details, open the Copilot Workspace session. |
Related to #4487
This pull request introduces support for external styling on the
TreeView
andTreeView.Item
components through theclassName
prop, allowing for more flexible customization without relying on CSS selectors.className
prop: BothTreeView
andTreeView.Item
components now accept aclassName
prop. This prop is applied to the root element of each component, enabling the application of custom styles directly.className
prop is optional and does not affect existing implementations that do not use this prop.TreeView
andTreeView.Item
have been updated to include the newclassName
prop, ensuring type safety for TypeScript users.For more details, open the Copilot Workspace session.