mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
54 lines
1.6 KiB
TypeScript
54 lines
1.6 KiB
TypeScript
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>
|
|
)
|
|
}
|