Autocomplete Field
A labeled autocomplete input with a filtered suggestion popup and helper or error text.
Type or choose an image tag.
Show codeHide code
Installation
import { AutocompleteField } from "@makeplane/propel/components/autocomplete-field";Usage
import { AutocompleteField } from "@makeplane/propel/components/autocomplete-field";
import { Icon } from "@makeplane/propel/components/icon";
import { IconButton } from "@makeplane/propel/components/icon-button";
import { ChevronsUpDown, X } from "lucide-react";
const IMAGES = ["nginx:1.29-alpine", "node:22-slim", "postgres:18", "redis:8.2.2-alpine"];
export default function BasicDemo() {
return (
<AutocompleteField
name="containerImage"
label="Container image"
description="Type or choose an image tag."
size="lg"
items={IMAGES}
placeholder="e.g. node:22-slim"
empty="No images found"
clear={
<IconButton
variant="ghost"
size="md"
aria-label="Clear container image"
icon={<Icon icon={X} />}
/>
}
trigger={
<IconButton
variant="ghost"
size="md"
aria-label="Open container image"
icon={<Icon icon={ChevronsUpDown} />}
/>
}
/>
);
}Examples
Sizes
size steps the label, description, and helper text together with the input group and its input text.
Type or choose an image tag.
Type or choose an image tag.
Type or choose an image tag.
Show codeHide code
Invalid
Setting error marks the field invalid, recolors the input group border, and replaces the description with the error text.
Enter a container image.
Show codeHide code
Disabled
Type or choose an image tag.
Show codeHide code
API Reference
AutocompleteField
Ready-to-use autocomplete field with label, input, popup items, and helper/error text.