reshaped

Reshaped Autocomplete

Forms 9

About

Renders a TextField and a list of suggested values using Autocomplete.Item compound components. The list is shown when the user focuses the field and hidden once they select a value. Supports filtering, custom item composition with slots, multiline start slot and FormControl integration.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Reshaped Autocomplete to your project and fits it to your theme.

Code

How Reshaped Autocomplete is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import * as React from "react";
import { Reshaped } from "reshaped/bundle";
import type { AutocompleteProps } from "reshaped/bundle";
import Autocomplete from "@/components/ui/reshaped-autocomplete";

export default function Demo() {
  const [value, setValue] = React.useState("");
  const options = ["Pizza", "Pie", "Ice-cream"];
  const handleChange: AutocompleteProps["onChange"] = (args) =>
    setValue(args.value);

  return (
    <Reshaped theme="slate">
      <div style={{ maxWidth: 360, width: "100%", margin: "0 auto", padding: 24 }}>
        <Autocomplete
          name="fruit"
          placeholder="Pick your food"
          value={value}
          onChange={handleChange}
        >
          {options.map((option) => (
            <Autocomplete.Item key={option} value={option}>
              {option}
            </Autocomplete.Item>
          ))}
        </Autocomplete>
      </div>
    </Reshaped>
  );
}

Dependencies

More by reshaped

View all
  • Reshaped Toast

    Reshaped Toast

    13
  • Reshaped Calendar

    Reshaped Calendar

    11
  • Reshaped Progress indicator

    Reshaped Progress indicator

    9
  • Reshaped Context menu

    Reshaped Context menu

    9
  • Reshaped Checkbox

    Reshaped Checkbox

    9
  • Reshaped Slider

    Reshaped Slider

    8
  • Reshaped Pagination

    Reshaped Pagination

    8
  • Reshaped Carousel

    Reshaped Carousel

    8

More in Forms

View all
  • Premium Auth

    Premium Auth

    592
  • Login 1

    Login 1

    70
  • Contact Card

    Contact Card

    1.1K
  • Contact Form

    Contact Form

    28
  • Form

    Form

    6
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form

    Form

    4
  • Book A Demo 4

    Book A Demo 4

    69