snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
45
apps/v4/examples/base/popover-form.tsx
Normal file
45
apps/v4/examples/base/popover-form.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
import { Button } from "@/styles/base-nova/ui/button"
|
||||
import { Field, FieldGroup, FieldLabel } from "@/styles/base-nova/ui/field"
|
||||
import { Input } from "@/styles/base-nova/ui/input"
|
||||
import {
|
||||
Popover,
|
||||
PopoverContent,
|
||||
PopoverDescription,
|
||||
PopoverHeader,
|
||||
PopoverTitle,
|
||||
PopoverTrigger,
|
||||
} from "@/styles/base-nova/ui/popover"
|
||||
|
||||
export function PopoverForm() {
|
||||
return (
|
||||
<>
|
||||
<Popover>
|
||||
<PopoverTrigger render={<Button variant="outline" />}>
|
||||
Open Popover
|
||||
</PopoverTrigger>
|
||||
<PopoverContent className="w-64" align="start">
|
||||
<PopoverHeader>
|
||||
<PopoverTitle>Dimensions</PopoverTitle>
|
||||
<PopoverDescription>
|
||||
Set the dimensions for the layer.
|
||||
</PopoverDescription>
|
||||
</PopoverHeader>
|
||||
<FieldGroup className="gap-4">
|
||||
<Field orientation="horizontal">
|
||||
<FieldLabel htmlFor="width" className="w-1/2">
|
||||
Width
|
||||
</FieldLabel>
|
||||
<Input id="width" defaultValue="100%" />
|
||||
</Field>
|
||||
<Field orientation="horizontal">
|
||||
<FieldLabel htmlFor="height" className="w-1/2">
|
||||
Height
|
||||
</FieldLabel>
|
||||
<Input id="height" defaultValue="25px" />
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user