Textarea field

v0.0.10

v0.0.10StableComponentStatelessApache-2.0
Installation mix mishka.ui.gen.component textarea_field
Source View Source

Form textarea component

Form textarea component

Please provide detailed feedback

The textarea_field component is used for capturing multi-line text input from users, making it ideal for longer content such as comments, descriptions, or feedback. Unlike a standard text input, textarea allows users to enter and edit multiple lines of text, offering greater flexibility for larger inputs. It can be customized in size and appearance to fit various form designs, ensuring an optimal user experience for entering extended information.

Form textarea component

heex
<.textarea_field
  name=""
  value=""
  label="Message"
  placeholder="Your message"
/>

Textarea disable resize prop

The disable_resize prop is a boolean. It adds resize-none, so the user cannot drag the corner of the textarea to change its size. Use it when the layout needs a fixed size.

Textarea disable resize prop

heex
<.textarea_field
  name=""
  value=""
  label="Message"
  placeholder="Your message"
  disable_resize
/>

Textarea rows prop

The rows prop sets the number of visible lines. When you leave it out, the browser default applies, which is two lines in most browsers.

Textarea rows prop

heex
<.textarea_field
  name=""
  value=""
  label="Message"
  placeholder="Your message"
  rows="6"
/>