Skip to content

[Tooltip][Popover] Refactor to useRenderElement #1701

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Apr 11, 2025

No description provided.

@atomiks atomiks added the component: tooltip This is the name of the generic UI component, not the React module! label Apr 11, 2025
Copy link

netlify bot commented Apr 11, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 1ca382c
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67f8e815d7b9610008072b01
😎 Deploy Preview https://deploy-preview-1701--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

forwardedRef: React.ForwardedRef<HTMLDivElement>,
) {
const { className, render, ...otherProps } = props;
const { className, render, ...intrinsicProps } = componentProps;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

elementProps may be better than intrinsicProps here, which matches useRender.ComponentProps vs useRender.ElementProps. React itself treats native tags as ComponentProps but it's a bit ambiguous/misleading in this scenario

@atomiks atomiks changed the title [Tooltip] Refactor to useRenderElement [Tooltip][Popover] Refactor to useRenderElement Apr 11, 2025
@atomiks atomiks added the component: popover This is the name of the generic UI component, not the React module! label Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: popover This is the name of the generic UI component, not the React module! component: tooltip This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant