ComponentsLumos 0.0.2NewOpen component

Textarea

A multi-line field that grows with what is typed into it.

A textarea is normally a fixed box: too tall for a one-line answer, too short for a real one. This one starts at minLines, grows as it is typed into, and stops growing at maxLines — after which it scrolls.

astro
<Textarea label="Message" minLines={3} maxLines={12} required />

Props

PropTypeDefaultWhat it does
renderbooleantrueSet to false to skip this component and everything inside it.
labelstringNoneThe text above the field.
valuestringNoneWhat the field starts out holding.
namestringNoneThe name it submits under. Taken from the label where it is not set.
placeholderstringNoneThe text shown in an empty field.
minLinesnumber3How short it may be, in lines.
maxLinesnumber12How tall it grows to before it scrolls, in lines.
requiredbooleanfalseMarks the field as needed, and stars its label.