mediahub-fe/app/[locale]/(protected)/forms/input-group/merged-input-group.tsx

82 lines
2.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import { Input } from "@/components/ui/input";
import {
InputGroup,
InputGroupButton,
InputGroupText,
} from "@/components/ui/input-group";
import { Icon } from "@iconify/react";
import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
const MergedInputGroup = () => {
return (
<>
<InputGroup merged>
<InputGroupText className="border-default-200">
<Icon icon="heroicons:magnifying-glass" />
</InputGroupText>
<Input type="text" placeholder="Search.." />
</InputGroup>
<InputGroup merged>
<Input type="text" placeholder="Search" />
<InputGroupText className="border-default-200">
<Icon icon="heroicons:magnifying-glass" />
</InputGroupText>
</InputGroup>
<InputGroup merged>
<InputGroupButton>
<Button
disabled
variant="outline"
size="md"
className="border-default-200 border-r-0"
>
<Icon icon="heroicons:at-symbol" />
</Button>
</InputGroupButton>
<Input
disabled
type="text"
placeholder="Search.."
className="border-l-0"
/>
</InputGroup>
<InputGroup merged>
<InputGroupText>
<Icon icon="heroicons:at-symbol" />
</InputGroupText>
<Input readOnly type="text" placeholder="Search.." />
</InputGroup>
<div>
<Label className="mb-3" htmlFor="username2">
Password
</Label>
<InputGroup>
<Input
type="password"
placeholder="Password"
id="username2"
required
/>
</InputGroup>
</div>
<InputGroup merged>
<Input type="text" placeholder="Recients username" />
<InputGroupText className=" text-sm font-normal ">
@example.com
</InputGroupText>
</InputGroup>
<InputGroup merged>
<InputGroupText className=" text-sm font-normal">
https://example.com/users/
</InputGroupText>
<Input type="text" placeholder="Recients username" />
</InputGroup>
</>
);
};
export default MergedInputGroup;