a
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
---
|
||||
title: Tooltip
|
||||
description: A cool way to give your users a hint of what a component does...😉
|
||||
lastUpdated: 09 Sep, 2025
|
||||
links:
|
||||
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Tooltip.tsx
|
||||
api_reference: https://www.radix-ui.com/primitives/docs/components/tooltip#api-reference
|
||||
---
|
||||
|
||||
<ComponentShowcase name="tooltip-style-default" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<ComponentInstall>
|
||||
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/tooltip" />
|
||||
<ComponentInstall.Manual>
|
||||
#### 1. Install dependencies:
|
||||
|
||||
```sh
|
||||
npm install @radix-ui/react-tooltip
|
||||
```
|
||||
|
||||
<br />
|
||||
|
||||
#### 2. Copy the code 👇 into your project:
|
||||
|
||||
<ComponentSource name="tooltip" />
|
||||
|
||||
</ComponentInstall.Manual>
|
||||
</ComponentInstall>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
## Examples
|
||||
|
||||
### Default
|
||||
|
||||
<ComponentShowcase name="tooltip-style-default" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
### Primary
|
||||
|
||||
<ComponentShowcase name="tooltip-style-primary" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
### Solid
|
||||
|
||||
<ComponentShowcase name="tooltip-style-solid" />
|
||||
Reference in New Issue
Block a user