diff --git a/.changeset/social-ants-bow.md b/.changeset/social-ants-bow.md new file mode 100644 index 00000000000..3f4cb968b9e --- /dev/null +++ b/.changeset/social-ants-bow.md @@ -0,0 +1,5 @@ +--- +'@primer/react': minor +--- + +Textarea: Adds `minHeight` and `maxHeight` as props diff --git a/packages/react/src/Textarea/Textarea.docs.json b/packages/react/src/Textarea/Textarea.docs.json index e3e74d78a50..64f863573a5 100644 --- a/packages/react/src/Textarea/Textarea.docs.json +++ b/packages/react/src/Textarea/Textarea.docs.json @@ -97,6 +97,16 @@ "name": "className", "type": "string | undefined", "description": "The className to apply to the wrapper element" + }, + { + "name": "minHeight", + "type": "number", + "description": "The minimum height of the textarea" + }, + { + "name": "maxHeight", + "type": "number", + "description": "The maximum height of the textarea" } ], "subcomponents": [] diff --git a/packages/react/src/Textarea/Textarea.features.stories.tsx b/packages/react/src/Textarea/Textarea.features.stories.tsx index 9000c845bd2..44b2311c9c9 100644 --- a/packages/react/src/Textarea/Textarea.features.stories.tsx +++ b/packages/react/src/Textarea/Textarea.features.stories.tsx @@ -104,3 +104,21 @@ export const CustomResizeBehavior = () => ( ) + +export const MinimumHeight = () => ( + + + Default label +