mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-25 13:46:07 +00:00
28 lines
729 B
TypeScript
28 lines
729 B
TypeScript
import { SearchIcon } from "lucide-react"
|
|
|
|
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import {
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupInput,
|
|
} from "@/styles/base-nova/ui/input-group"
|
|
|
|
export function InputGroupInlineStart() {
|
|
return (
|
|
<Field className="max-w-sm">
|
|
<FieldLabel htmlFor="inline-start-input">Input</FieldLabel>
|
|
<InputGroup>
|
|
<InputGroupInput id="inline-start-input" placeholder="Search..." />
|
|
<InputGroupAddon align="inline-start">
|
|
<SearchIcon className="text-muted-foreground" />
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
<FieldDescription>Icon positioned at the start.</FieldDescription>
|
|
</Field>
|
|
)
|
|
}
|