• Textarea

    Auto-growing textarea using field-sizing: content.

    Default

    <textarea placeholder="Write something..."></textarea>

    Composition

    A <textarea> sits flush inside an <article> card with a toolbar header and status footer.

    script.js
    Line 1, Column 1
    <article>
      <header style="display: flex; align-items: center; gap: 8px">
        <svg><!-- brand-javascript --></svg>
        <span>script.js</span>
        <span style="flex: 1"></span>
        <button class="ghost square" aria-label="Reload"><svg>...</svg></button>
        <button class="ghost square" aria-label="Copy"><svg>...</svg></button>
      </header>
      <textarea style="border-radius: 0; resize: none">
        console.log('Hello, world!');
      </textarea>
      <footer
        style="display: flex; align-items: center; justify-content: space-between"
      >
        <small>Line 1, Column 1</small>
        <button>
          Run <svg><!-- corner-down-left --></svg>
        </button>
      </footer>
    </article>

    Search 5021 icons

    Type a name to find icons from the Tabler icon set.