mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
26 lines
602 B
TypeScript
26 lines
602 B
TypeScript
const App = `import {Popover, PopoverTrigger, PopoverContent, Button} from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<Popover placement="right">
|
|
<PopoverTrigger>
|
|
<Button variant="flat">Open Popover</Button>
|
|
</PopoverTrigger>
|
|
<PopoverContent>
|
|
<div className="px-1 py-2">
|
|
<div className="text-sm font-bold">Popover Content</div>
|
|
<div className="text-xs">This is the popover content</div>
|
|
</div>
|
|
</PopoverContent>
|
|
</Popover>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|