Proto-UI/Proto-UI

Add a shadcn-style Tooltip prototype

已關閉

#228 建立於 2026年5月4日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (12 個分叉)auto 404
F3 – Moderategood first issuehelp wantedprototypev0 launch

倉庫指標

星標
 (29 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Campaign: v0-good-first-issues Seed id: shadcn-tooltip-prototype

Summary

Build a shadcn-style Tooltip prototype on top of the base Tooltip work.

Scope

  • Add the shadcn-facing Tooltip prototype after the base Tooltip API is available.
  • Match existing shadcn style conventions; use shadcn Hover Card/Dialog as trigger/content styling references.
  • Add a minimal trigger/content demo.

Acceptance criteria

  • The demo shows the tooltip opening from an interactive trigger.
  • The implementation keeps positioning expectations modest and documented.
  • The docs link back to the base Tooltip prototype.

References

  • packages/prototypes/shadcn/src/hover-card/root.ts
  • packages/prototypes/shadcn/src/hover-card/trigger.ts
  • packages/prototypes/shadcn/src/hover-card/content.ts
  • packages/prototypes/shadcn/test/hover-card.test.ts
  • packages/prototypes/shadcn/src/dialog/trigger.ts
  • packages/prototypes/shadcn/src/dialog/content.ts
  • packages/prototypes/shadcn/test/dialog.test.ts
  • apps/www/src/content/docs/en/ui-libraries/shadcn
  • internal/issues/v0-good-first-issues.json#base-tooltip-prototype

Out of scope

  • A full floating-ui integration.
  • HoverCard behavior.

Maintainer notes

Category: prototype Difficulty: small

貢獻者指南