Autosize Textarea Max Height

PreviousNext

component for the Autosize Textarea Max Height

Docs
spectrumuicomponent

Preview

Loading preview…
app/registry/autosize-textarea/usage/autosize-textarea-with-max-height.tsx
import React from "react";
import { AutosizeTextarea } from "@/components/ui/autosize-textarea";

const AutosizeTextareaWithMaxHeight = () => {
  return (
    <div className="w-full px-10">
      <AutosizeTextarea
        placeholder="This textarea with min height 52 and max height 200."
        maxHeight={200}
      />
    </div>
  );
};

export default AutosizeTextareaWithMaxHeight;

Installation

npx shadcn@latest add @spectrumui/autosize-textarea-max-height

Usage

import { AutosizeTextareaMaxHeight } from "@/components/autosize-textarea-max-height"
<AutosizeTextareaMaxHeight />