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 DocumentationAtlas SearchAPI 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  97c4794a_06a1_2731_51ac_0db0dffe2742["button-group-popover.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  97c4794a_06a1_2731_51ac_0db0dffe2742 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  a6e3100c_774c_ccde_3661_3d83448167f7["button-group"]
  97c4794a_06a1_2731_51ac_0db0dffe2742 --> a6e3100c_774c_ccde_3661_3d83448167f7
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  97c4794a_06a1_2731_51ac_0db0dffe2742 --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  a3e47561_21be_d5cd_a896_ddf369cf7b61["popover"]
  97c4794a_06a1_2731_51ac_0db0dffe2742 --> a3e47561_21be_d5cd_a896_ddf369cf7b61
  6c4f9605_1396_54b6_7795_ad1fc5372e6a["textarea"]
  97c4794a_06a1_2731_51ac_0db0dffe2742 --> 6c4f9605_1396_54b6_7795_ad1fc5372e6a
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  97c4794a_06a1_2731_51ac_0db0dffe2742 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 97c4794a_06a1_2731_51ac_0db0dffe2742 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/base/ui/button"
import { ButtonGroup } from "@/examples/base/ui/button-group"
import { Field, FieldDescription, FieldLabel } from "@/examples/base/ui/field"
import {
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@/examples/base/ui/popover"
import { Textarea } from "@/examples/base/ui/textarea"
import { BotIcon, ChevronDownIcon } from "lucide-react"

export default function ButtonGroupPopover() {
  return (
    <ButtonGroup>
      <Button variant="outline">
        <BotIcon /> Copilot
      </Button>
      <Popover>
        <PopoverTrigger
          render={
            <Button variant="outline" size="icon" aria-label="Open Popover" />
          }
        >
          <ChevronDownIcon />
        </PopoverTrigger>
        <PopoverContent align="end" className="rounded-xl text-sm">
          <PopoverHeader>
            <PopoverTitle>Start a new task with Copilot</PopoverTitle>
            <PopoverDescription>
              Describe your task in natural language.
            </PopoverDescription>
          </PopoverHeader>
          <Field>
            <FieldLabel htmlFor="task" className="sr-only">
              Task Description
            </FieldLabel>
            <Textarea
              id="task"
              placeholder="I need to..."
              className="resize-none"
            />
            <FieldDescription>
              Copilot will open a pull request for review.
            </FieldDescription>
          </Field>
        </PopoverContent>
      </Popover>
    </ButtonGroup>
  )
}

Subdomains

Dependencies

  • button
  • button-group
  • field
  • lucide-react
  • popover
  • 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 DocumentationAtlas domain, SearchAPI 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, field, lucide-react, popover, textarea.
Where is button-group-popover.tsx in the architecture?
button-group-popover.tsx is located at apps/v4/examples/base/button-group-popover.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free