components/example.tsx
1
2
3
4
import { Popover, PopoverContent, PopoverTrigger } from "passport-ui";import { Button } from "passport-ui";import { Input } from "passport-ui";import { Label } from "passport-ui";components/example.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Popover> <PopoverTrigger asChild> <Button variant="outline">Open popover</Button> </PopoverTrigger> <PopoverContent className="w-sm"> <div className="section-container"> <div className="meta-container"> <h3>Dimensions</h3> <p>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 id="width" defaultValue="100%" className="col-span-2" /> </div> <div className="grid grid-cols-3 items-center gap-4"> <Label htmlFor="height">Height</Label> <Input id="height" defaultValue="100%" className="col-span-2" /> </div> </div> </div> </PopoverContent></Popover>