Skip to content

Feat add tooltip component#107

Merged
lucasadsr merged 3 commits intodevelopfrom
feat-add-tooltip-component
Jan 25, 2026
Merged

Feat add tooltip component#107
lucasadsr merged 3 commits intodevelopfrom
feat-add-tooltip-component

Conversation

@MarcosvBueno
Copy link
Contributor

🧩 PR Summary — Tooltip Component

This pull request introduces a new Tooltip component with animated variants, full accessibility support, and complete integration into the Pittaya UI documentation system.

✨ New Tooltip Component

  • Added a reusable Tooltip component (src/components/ui/tooltip.tsx) built with Radix UI and Framer Motion.
  • Supports multiple presentation styles:
    • Default tooltip
    • Animated variants:
      • TooltipContentAnimated
      • TooltipContentSwing
      • TooltipContentFlip
  • Includes accessibility features out of the box and customizable props for flexible usage.

📚 Documentation & Examples

  • Created comprehensive documentation for the Tooltip component in src/components/docs/contents/tooltip.tsx, covering:
    • Usage guidelines
    • Accessibility notes
    • Best practices
    • Detailed props reference
    • Live and interactive examples for each variant

🔗 Docs System Integration

  • Registered the Tooltip documentation in the docs registry (src/lib/docs/component-details.tsx) so it appears in the documentation site.
  • Added the Tooltip to the components index (src/lib/docs/components-index.ts) with proper categorization, tags, and dependency metadata.

📦 Dependency Update

  • Added @radix-ui/react-tooltip to package.json to support the new Tooltip component.

Overall, this PR expands the Pittaya UI component set with a flexible, animated, and accessible Tooltip, improving both developer experience and UI expressiveness.

@vercel
Copy link

vercel bot commented Jan 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ui Ready Ready Preview, Comment Jan 24, 2026 8:22pm

@MarcosvBueno MarcosvBueno self-assigned this Jan 24, 2026
Copy link
Member

@lucasadsr lucasadsr left a comment

Choose a reason for hiding this comment

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

LGTM

@lucasadsr lucasadsr merged commit 32eadc4 into develop Jan 25, 2026
2 checks passed
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