@manhphi1309/popover
v0.3.4
Published
A beautifully designed popover component for your React application.
Readme
@manhphi1309/popover
A beautifully designed popover component for your React application.
Subcomponents
This package provides the following components:
PopoverPopoverAnchorPopoverContentPopoverDescriptionPopoverHeaderPopoverTitlePopoverTrigger
Dependencies
This package relies on:
@manhphi1309/button@manhphi1309/input@manhphi1309/utilsclsxradix-uitailwind-merge
Installation
npm install @manhphi1309/popoverUsage Example
import {
Popover,
PopoverTrigger,
PopoverContent,
PopoverTitle,
PopoverDescription,
} from "@manhphi1309/popover"
import { Button } from "@manhphi1309/button"
export default function Example() {
return (
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Open Popover</Button>
</PopoverTrigger>
<PopoverContent>
<PopoverTitle>Dimensions</PopoverTitle>
<PopoverDescription>
Set the dimensions for the layer.
</PopoverDescription>
</PopoverContent>
</Popover>
)
}