AI textarea with a send button and optional attachment and voice input buttons
When buttonText is set, the submit button expands into a pill once the text reaches minCharacters (default: 6). Type at least 6 characters to see it expand.
Use minCharacters to customize the expansion threshold. Here it is set to 10.
Without buttonText the submit button stays a circle regardless of how much text is entered.
Submit expands to a labelled pill once `minCharacters` is reached.
Character threshold for submit expand (requires `buttonText`).