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.
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import {
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupButton,
|
|
InputGroupInput,
|
|
} from "@/examples/base/ui/input-group"
|
|
import { Label } from "@/examples/base/ui/label"
|
|
import {
|
|
Tooltip,
|
|
TooltipContent,
|
|
TooltipTrigger,
|
|
} from "@/examples/base/ui/tooltip"
|
|
import { InfoIcon } from "lucide-react"
|
|
|
|
export default function InputGroupLabel() {
|
|
return (
|
|
<div className="grid w-full max-w-sm gap-4">
|
|
<InputGroup>
|
|
<InputGroupInput id="email" placeholder="shadcn" />
|
|
<InputGroupAddon>
|
|
<Label htmlFor="email">@</Label>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
<InputGroup>
|
|
<InputGroupInput id="email-2" placeholder="[email protected]" />
|
|
<InputGroupAddon align="block-start">
|
|
<Label htmlFor="email-2" className="text-foreground">
|
|
Email
|
|
</Label>
|
|
<Tooltip>
|
|
<TooltipTrigger
|
|
render={
|
|
<InputGroupButton
|
|
variant="ghost"
|
|
aria-label="Help"
|
|
className="ml-auto rounded-full"
|
|
size="icon-xs"
|
|
/>
|
|
}
|
|
>
|
|
<InfoIcon />
|
|
</TooltipTrigger>
|
|
<TooltipContent>
|
|
<p>We'll use this to send you notifications</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
</div>
|
|
)
|
|
}
|