1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"use client";
import { ArrowUp, Mail } from "lucide-react";
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupInput,
InputGroupText,
InputGroupTextarea,
} from "@/components/ui/input-group";
export default function InputGroupBasicPreview() {
return (
<div className="flex w-full max-w-compact flex-col gap-4">
<InputGroup>
<InputGroupAddon>
<InputGroupText>
<Mail />
</InputGroupText>
</InputGroupAddon>
<InputGroupInput aria-label="Email" placeholder="you@example.com" />
</InputGroup>
<InputGroup variant="composer">
<InputGroupTextarea
rows={1}
aria-label="Message"
placeholder="Ask a follow-up"
/>
<InputGroupAddon align="inline-end">
<InputGroupButton
variant="default"
size="icon-sm"
shape="round"
aria-label="Send"
>
<ArrowUp />
</InputGroupButton>
</InputGroupAddon>
</InputGroup>
</div>
);
}