-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The tooltip component is missing the arrow element that appears in the documentation examples. To display the arrow, TooltipPrimitive.Arrow
must be manually added to the component on CLI installation.
It should be noted in the documentation that the CLI installation does not come with the TooltipPrimitive.Arrow
or It can be added to the Tooltip installation automatically.
Affected component/components
Tooltip
How to reproduce
- Install shadcn
- Install Tooltip and Button components
import { Button } from "@/components/ui/button"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip"
export function TooltipDemo() {
return (
<Tooltip>
<TooltipTrigger asChild>
<Button variant="outline">Hover</Button>
</TooltipTrigger>
<TooltipContent>
<p>Add to library</p>
</TooltipContent>
</Tooltip>
)
}
Codesandbox/StackBlitz link
No response
Logs
System Info
Chrome
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Gintasz and theogravity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working