mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
Upstream sync from shadcn-ui/ui (1686 commits since last merge base). Key changes: - packages/shadcn upgraded to 4.1.0 (CLI font transformers, scaffold from github, chart colors) - apps/v4 replaces apps/www as the primary docs/registry app - Font system: 25+ heading font registries, font markers utility, @supports override - Chart improvements: recharts v3 compat, radial chart fixes - templates/ updated with monorepo variants (astro, vite, react-router, start) - skills/shadcn AI skill definitions added - deprecated/ removed (auth, auth-firebase, cli, www) Preserved Hanzo-only paths: app/, pkg/, demo/, docs/, template/next/
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import {
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupInput,
|
|
InputGroupText,
|
|
InputGroupTextarea,
|
|
} from "@/examples/base/ui/input-group"
|
|
|
|
export default function InputGroupTextExample() {
|
|
return (
|
|
<div className="grid w-full max-w-sm gap-6">
|
|
<InputGroup>
|
|
<InputGroupAddon>
|
|
<InputGroupText>$</InputGroupText>
|
|
</InputGroupAddon>
|
|
<InputGroupInput placeholder="0.00" />
|
|
<InputGroupAddon align="inline-end">
|
|
<InputGroupText>USD</InputGroupText>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
<InputGroup>
|
|
<InputGroupAddon>
|
|
<InputGroupText>https://</InputGroupText>
|
|
</InputGroupAddon>
|
|
<InputGroupInput placeholder="example.com" className="pl-0.5!" />
|
|
<InputGroupAddon align="inline-end">
|
|
<InputGroupText>.com</InputGroupText>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
<InputGroup>
|
|
<InputGroupInput placeholder="Enter your username" />
|
|
<InputGroupAddon align="inline-end">
|
|
<InputGroupText>@company.com</InputGroupText>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
<InputGroup>
|
|
<InputGroupTextarea placeholder="Enter your message" />
|
|
<InputGroupAddon align="block-end">
|
|
<InputGroupText className="text-xs text-muted-foreground">
|
|
120 characters left
|
|
</InputGroupText>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
</div>
|
|
)
|
|
}
|