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

feat: 🎸 make item and itemContent props customizable #25

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

blaiseludvig
Copy link
Contributor

Add getItemProps and getItemContentProps to allow customizing the props
of the wrapper item and the item content

Also, this fixes the broken type inference caused by using forwardRef. See:
https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/forward_and_create_ref/#generic-forwardrefs

No breaking changes are made, everything can be applied as a patch to the current version.
Should be ready for review!

Add getItemProps and getItemContentProps to allow customizing the props
of the wrapper item and the item content

✅ Closes: vingeraycn#21
Copy link
Owner

@vingeraycn vingeraycn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine, Thanks for your contribution! @blaiseludvig

@vingeraycn vingeraycn changed the base branch from main to next November 27, 2023 06:15
@vingeraycn vingeraycn merged commit 9c1eaa0 into vingeraycn:next Nov 27, 2023
1 check passed
@vingeraycn vingeraycn mentioned this pull request Nov 27, 2023
Merged
vingeraycn added a commit that referenced this pull request Nov 27, 2023
* feat: 🎸 make item and itemContent props customizable  (#25)

* fix: 🐛 fix type inference for props

Fix the broken type inference caused by using forwardRef. See:
https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/forward_and_create_ref/#generic-forwardrefs

* feat: 🎸 make item and itemContent props customizable

Add getItemProps and getItemContentProps to allow customizing the props
of the wrapper item and the item content

✅ Closes: #21

* refactor: clean code

---------

Co-authored-by: blaiseludvig <blaiseludvig@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants