snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
22
apps/v4/examples/aria/input-group-kbd.tsx
Normal file
22
apps/v4/examples/aria/input-group-kbd.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { SearchIcon } from "lucide-react"
|
||||
|
||||
import {
|
||||
InputGroup,
|
||||
InputGroupAddon,
|
||||
InputGroupInput,
|
||||
} from "@/styles/aria-nova/ui/input-group"
|
||||
import { Kbd } from "@/styles/aria-nova/ui/kbd"
|
||||
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user