popover-style-default

PreviousNext
Docs
retrouiblock

Preview

Loading preview…
preview/components/popover-style-default.tsx
"use client";

import { Popover, Label, Button, Input } from "@/components/retroui";

export default function PopoverStyleDefault() {
  return (
    <Popover>
      <Popover.Trigger asChild>
        <Button>Open Popover</Button>
      </Popover.Trigger>
      <Popover.Content className="w-80 font-sans">
        <div className="grid gap-4">
          <div className="space-y-2">
            <h4 className="font-medium leading-none">Dimensions</h4>
            <p className="text-sm text-muted-foreground">
              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 h-8"
              />
            </div>

            <div className="grid grid-cols-3 items-center gap-4">
              <Label htmlFor="height">Height</Label>

              <Input
                id="height"
                defaultValue="25px"
                className="col-span-2 h-8"
              />
            </div>
          </div>
        </div>
      </Popover.Content>
    </Popover>
  );
}

Installation

npx shadcn@latest add @retroui/popover-style-default

Usage

import { PopoverStyleDefault } from "@/components/popover-style-default"
<PopoverStyleDefault />