mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
22 lines
544 B
TypeScript
22 lines
544 B
TypeScript
import {
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupInput,
|
|
} from "@/examples/base/ui/input-group"
|
|
import { Kbd } from "@/examples/base/ui/kbd"
|
|
import { SearchIcon } from "lucide-react"
|
|
|
|
export function InputGroupKbd() {
|
|
return (
|
|
<InputGroup className="max-w-sm">
|
|
<InputGroupInput placeholder="Search..." />
|
|
<InputGroupAddon>
|
|
<SearchIcon className="text-muted-foreground" />
|
|
</InputGroupAddon>
|
|
<InputGroupAddon align="inline-end">
|
|
<Kbd>⌘K</Kbd>
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
)
|
|
}
|