Skip to content

feat: Add Tooltip primitive#611

Open
jordanarldt wants to merge 1 commit intomakeswift:mainfrom
jordanarldt:ja/add-tooltip
Open

feat: Add Tooltip primitive#611
jordanarldt wants to merge 1 commit intomakeswift:mainfrom
jordanarldt:ja/add-tooltip

Conversation

@jordanarldt
Copy link
Copy Markdown
Contributor

Add Tooltip primitive component

image

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 19, 2025

@jordanarldt is attempting to deploy a commit to the Makeswift Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vibes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 20, 2025 2:18pm

sideOffset?: number;
}

// eslint-disable-next-line valid-jsdoc
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we remove this eslint-disable in VIBES?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ope yep! Good call

className?: string;
delayDuration?: number;
skipDelayDuration?: number;
trigger?: React.ReactNode;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In what scenarios would we want a trigger being optional for tooltip?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If it's being controlled externally by some other state or if the trigger needs to be detached from the component. For our use-case in catalyst it doesn't need to be optional, so I can make it required if needed!

But also, the trigger isn't required in the underlying Radix UI component IIRC!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants