mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
29 lines
649 B
TypeScript
29 lines
649 B
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
Icon,
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupInput,
|
|
} from "@lcui/react";
|
|
|
|
export default function Example() {
|
|
return (
|
|
<Field className="w-[384px]">
|
|
<FieldLabel htmlFor="inline-end-input">Input</FieldLabel>
|
|
<InputGroup>
|
|
<InputGroupInput
|
|
id="inline-end-input"
|
|
type="password"
|
|
placeholder="Enter password"
|
|
/>
|
|
<InputGroupAddon align="inline-end">
|
|
<Icon name="eye-off" />
|
|
</InputGroupAddon>
|
|
</InputGroup>
|
|
<FieldDescription>Icon positioned at the end.</FieldDescription>
|
|
</Field>
|
|
);
|
|
}
|