snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
29
apps/v4/examples/base/popover-basic.tsx
Normal file
29
apps/v4/examples/base/popover-basic.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Button } from "@/styles/base-nova/ui/button"
|
||||
import {
|
||||
Popover,
|
||||
PopoverContent,
|
||||
PopoverDescription,
|
||||
PopoverHeader,
|
||||
PopoverTitle,
|
||||
PopoverTrigger,
|
||||
} from "@/styles/base-nova/ui/popover"
|
||||
|
||||
export function PopoverBasic() {
|
||||
return (
|
||||
<>
|
||||
<Popover>
|
||||
<PopoverTrigger render={<Button variant="outline" className="w-fit" />}>
|
||||
Open Popover
|
||||
</PopoverTrigger>
|
||||
<PopoverContent align="start">
|
||||
<PopoverHeader>
|
||||
<PopoverTitle>Dimensions</PopoverTitle>
|
||||
<PopoverDescription>
|
||||
Set the dimensions for the layer.
|
||||
</PopoverDescription>
|
||||
</PopoverHeader>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user