带提示文本的组件,当有提示文本时在 children 后面显示问号图标。
npx shadcn@latest add https://codebase.anyask.dev/r/question-tooltip.json
yarn dlx shadcn@latest add https://codebase.anyask.dev/r/question-tooltip.json
pnpm dlx shadcn@latest add https://codebase.anyask.dev/r/question-tooltip.json
bunx shadcn@latest add https://codebase.anyask.dev/r/question-tooltip.json
deno run npm:shadcn@latest npm:add https://codebase.anyask.dev/r/question-tooltip.json
通过 triggerAll prop 使整个区域都触发 Tooltip 提示。
triggerAll
带提示文本的组件,当有提示文本时在 children 后面显示问号图标
string
-
ReactNode
boolean