Home / File/ button-group-popover.tsx — ui Source File

button-group-popover.tsx — ui Source File

Architecture documentation for button-group-popover.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  3fb2af96_9961_708f_6a3d_2df4e16f3366["button-group-popover.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  3fb2af96_9961_708f_6a3d_2df4e16f3366 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  3fb2af96_9961_708f_6a3d_2df4e16f3366 --> 57e86e45_ac6e_7278_be08_9092724e8401
  d431e985_324f_ebc5_0383_4b336fa5e906["button-group"]
  3fb2af96_9961_708f_6a3d_2df4e16f3366 --> d431e985_324f_ebc5_0383_4b336fa5e906
  64a3481c_a85b_fe79_409a_cb7f3f4bb871["popover"]
  3fb2af96_9961_708f_6a3d_2df4e16f3366 --> 64a3481c_a85b_fe79_409a_cb7f3f4bb871
  b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"]
  3fb2af96_9961_708f_6a3d_2df4e16f3366 --> b2c60dee_4ede_8485_a6b4_91c999cdc69f
  a1802a9d_1c52_7ef5_709a_134c4400c1c3["textarea"]
  3fb2af96_9961_708f_6a3d_2df4e16f3366 --> a1802a9d_1c52_7ef5_709a_134c4400c1c3
  style 3fb2af96_9961_708f_6a3d_2df4e16f3366 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { BotIcon, ChevronDownIcon } from "lucide-react"

import { Button } from "@/registry/new-york-v4/ui/button"
import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group"
import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from "@/registry/new-york-v4/ui/popover"
import { Separator } from "@/registry/new-york-v4/ui/separator"
import { Textarea } from "@/registry/new-york-v4/ui/textarea"

export default function ButtonGroupPopover() {
  return (
    <ButtonGroup>
      <Button variant="outline">
        <BotIcon /> Copilot
      </Button>
      <Popover>
        <PopoverTrigger asChild>
          <Button variant="outline" size="icon" aria-label="Open Popover">
            <ChevronDownIcon />
          </Button>
        </PopoverTrigger>
        <PopoverContent align="end" className="rounded-xl p-0 text-sm">
          <div className="px-4 py-3">
            <div className="text-sm font-medium">Agent Tasks</div>
          </div>
          <Separator />
          <div className="p-4 text-sm *:[p:not(:last-child)]:mb-2">
            <Textarea
              placeholder="Describe your task in natural language."
              className="mb-4 resize-none"
            />
            <p className="font-medium">Start a new task with Copilot</p>
            <p className="text-muted-foreground">
              Describe your task in natural language. Copilot will work in the
              background and open a pull request for your review.
            </p>
          </div>
        </PopoverContent>
      </Popover>
    </ButtonGroup>
  )
}

Subdomains

Dependencies

  • button
  • button-group
  • lucide-react
  • popover
  • separator
  • textarea

Frequently Asked Questions

What does button-group-popover.tsx do?
button-group-popover.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in button-group-popover.tsx?
button-group-popover.tsx defines 1 function(s): ButtonGroupPopover.
What does button-group-popover.tsx depend on?
button-group-popover.tsx imports 6 module(s): button, button-group, lucide-react, popover, separator, textarea.
Where is button-group-popover.tsx in the architecture?
button-group-popover.tsx is located at apps/v4/registry/new-york-v4/examples/button-group-popover.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free