mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-27 06:34:12 +00:00
26 lines
682 B
TypeScript
26 lines
682 B
TypeScript
import { Field, FieldLabel } from "@/examples/base/ui/field"
|
|
import {
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupInput,
|
|
InputGroupText,
|
|
} from "@/examples/base/ui/input-group"
|
|
import { InfoIcon } from "lucide-react"
|
|
|
|
export function InputInputGroup() {
|
|
return (
|
|
<Field>
|
|
<FieldLabel htmlFor="input-group-url">Website URL</FieldLabel>
|
|
<InputGroup>
|
|
<InputGroupInput id="input-group-url" placeholder="example.com" />
|
|
<InputGroupAddon>
|
|
<InputGroupText>https://</InputGroupText>
|
|
</InputGroupAddon>
|
|
<InputGroupAddon align="inline-end">
|
|
<InfoIcon />
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
</Field>
|
|
)
|
|
}
|