Ember UI LogoEmber UI
Components

Popover

A popover component

Preview

Loading...
import { Button } from "@/registry/axon/ui/button";import { Input } from "@/registry/axon/ui/input";import { Label } from "@/registry/axon/ui/label";import {  Popover,  PopoverContent,  PopoverTrigger,} from "@/registry/axon/ui/popover";export default function PopoverDemo() {  return (    <Popover>      <PopoverTrigger asChild>        <Button variant="outline">Open popover</Button>      </PopoverTrigger>      <PopoverContent className="w-80">        <div className="grid gap-4">          <div className="space-y-2">            <h4 className="font-medium leading-none">Dimensions</h4>            <p className="text-muted-foreground text-sm">              Set the dimensions for the layer.            </p>          </div>          <div className="grid gap-2">            <div className="grid grid-cols-3 items-center gap-4">              <Label htmlFor="width">Width</Label>              <Input                className="col-span-2 h-8"                defaultValue="100%"                id="width"              />            </div>            <div className="grid grid-cols-3 items-center gap-4">              <Label htmlFor="maxWidth">Max. width</Label>              <Input                className="col-span-2 h-8"                defaultValue="300px"                id="maxWidth"              />            </div>            <div className="grid grid-cols-3 items-center gap-4">              <Label htmlFor="height">Height</Label>              <Input                className="col-span-2 h-8"                defaultValue="25px"                id="height"              />            </div>            <div className="grid grid-cols-3 items-center gap-4">              <Label htmlFor="maxHeight">Max. height</Label>              <Input                className="col-span-2 h-8"                defaultValue="none"                id="maxHeight"              />            </div>          </div>        </div>      </PopoverContent>    </Popover>  );}

Installation

CLI

npx shadcn@latest add @emberui/popover
yarn shadcn@latest add @emberui/popover
pnpm dlx shadcn@latest add @emberui/popover
bunx --bun shadcn@latest add @emberui/popover

Reference

This component is based on the shadcn/ui Popover component.

On this page