[Toolkit][Shadcn] Add Tooltip component#3321
Merged
Kocal merged 1 commit intosymfony:2.xfrom Jan 29, 2026
Merged
Conversation
a6d3996 to
3c797a6
Compare
3c797a6 to
487040e
Compare
59 tasks
There was a problem hiding this comment.
Pull request overview
This PR adds a new Tooltip component to the Symfony UX Toolkit shadcn kit, replacing the previous PR #3283. The component provides hover and focus-based tooltips with customizable positioning (top, right, bottom, left) and delay duration.
Changes:
- Added Tooltip component with Trigger and Content sub-components following the established shadcn/ui patterns
- Implemented a Stimulus controller for tooltip positioning and show/hide behavior with delay support
- Added multiple usage examples demonstrating different tooltip configurations
- Updated CHANGELOG.md to document the new tooltip recipe
- Updated Accordion component comment for consistency (capitalization)
Reviewed changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip.html.twig |
Main tooltip wrapper component with ID and delay configuration |
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip/Trigger.html.twig |
Trigger sub-component that defines interaction attributes for tooltip activation |
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip/Content.html.twig |
Content sub-component containing tooltip body and arrow with positioning configuration |
src/Toolkit/kits/shadcn/tooltip/assets/controllers/tooltip_controller.js |
Stimulus controller handling tooltip positioning, show/hide logic, and delay behavior |
src/Toolkit/kits/shadcn/tooltip/manifest.json |
Component manifest defining dependencies and file structure |
src/Toolkit/kits/shadcn/tooltip/examples/*.html.twig |
Example templates demonstrating various tooltip usage patterns |
src/Toolkit/CHANGELOG.md |
Documents the addition of the tooltip recipe |
src/Toolkit/kits/shadcn/accordion/templates/components/Accordion.html.twig |
Minor comment capitalization fix for consistency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Toolkit/kits/shadcn/tooltip/assets/controllers/tooltip_controller.js
Show resolved
Hide resolved
src/Toolkit/kits/shadcn/tooltip/assets/controllers/tooltip_controller.js
Outdated
Show resolved
Hide resolved
src/Toolkit/kits/shadcn/tooltip/assets/controllers/tooltip_controller.js
Outdated
Show resolved
Hide resolved
src/Toolkit/kits/shadcn/tooltip/assets/controllers/tooltip_controller.js
Outdated
Show resolved
Hide resolved
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip/Content.html.twig
Outdated
Show resolved
Hide resolved
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip.html.twig
Outdated
Show resolved
Hide resolved
4860702 to
901384e
Compare
4d756ee to
d0269ff
Compare
Kocal
added a commit
to symfony/ux.symfony.com
that referenced
this pull request
Jan 29, 2026
This PR was merged into the main branch. Discussion ---------- [Toolkit][Shadcn] Add documentation for Toolkit recipe | Q | A | -------------- | --- | Bug fix? | no | New feature? | no | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Related to symfony/ux#3321 Commits ------- b1b5cca [Toolkit][Shadcn] Add documentation for Toolkit recipe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace #3283
Enregistrement.de.l.ecran.2026-01-29.a.09.05.37.mov