diff --git a/.changeset/breezy-dodos-lick.md b/.changeset/breezy-dodos-lick.md new file mode 100644 index 00000000..d564b556 --- /dev/null +++ b/.changeset/breezy-dodos-lick.md @@ -0,0 +1,5 @@ +--- +'react-textarea-autosize': minor +--- + +Add `ignorePlaceholder` option diff --git a/README.md b/README.md index 3263d9bb..dc5ea0e4 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ https://andarist.github.io/react-textarea-autosize/ | `minRows` | `number` | Minimum number of rows to show for textarea | | `onHeightChange` | `func` | Function invoked on textarea height change, with height as first argument. The second function argument is an object containing additional information that might be useful for custom behaviors. Current options include `{ rowHeight: number }`. | | `cacheMeasurements` | `boolean` | Reuse previously computed measurements when computing height of textarea. Default: `false` | +| `ignorePlaceholder` | `boolean` | Whether to ignore placeholder when computing height of textarea. Default: `false` | Apart from these, the component accepts all props that are accepted by `