Files
nanocode/RetroUI/content/docs/components/popover.mdx
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

67 lines
1.1 KiB
Plaintext

---
title: Popover
description: A handy small component for your little input needs...😉
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Popover.tsx
---
<ComponentShowcase name="popover-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/popover" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-popover
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="popover" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Usage
```typescript
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/components/retroui/Popover";
```
```typescript
<Popover>
<PopoverTrigger>Open</PopoverTrigger>
<PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>
```
<br />
<br />
## Examples
### Default
<ComponentShowcase name="popover-style-default" />
<br />
<br />
### Shadowed
<ComponentShowcase name="popover-style-default-shadow" />
<br />
<br />