A text area as the canvas draws it: it grows with its text (field-sizing: content, up to 12 lines), has an
optional footer for actions (attach, mention, improve with the AI) and a counter that turns red near the
limit. The label and the help text are the caller's; this is the field.
Summary
Functions
A small button of the footer of a textarea/1, with an icon and an optional text.
Whether count characters are within 10% of max.
Functions
@spec near_limit?(non_neg_integer(), pos_integer()) :: boolean()
Whether count characters are within 10% of max.
Attributes
id(:string) (required)name(:string) - Defaults tonil.value(:string) - Defaults tonil.rows(:integer) - Defaults to3.maxlength(:integer) - shows the counter and turns it red near the limit. Defaults tonil.invalid(:boolean) - Defaults tofalse.class(:any) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["placeholder", "disabled", "readonly", "required"].
Slots
footer- actions under the text, at the start; the counter sits at the end.