awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jackmoore avatar

jackmoore/autosizeArchived

0
View on GitHub↗
5,092 星标·692 分支·JavaScript·MIT·4 次浏览www.jacklmoore.com/autosize↗

Autosize

autosize is a client-side JavaScript utility that automatically adjusts the height of HTML textarea elements to fit their text content. It functions as a DOM layout tool designed to manage the dimensions and scrolling behavior of input fields in real time.

The utility handles dynamic resizing during user typing and window resize events. It supports height constraints by comparing calculated dimensions against CSS minimum and maximum properties to restore overflow scrolling when limits are reached.

The tool provides capabilities to monitor resize events, manually trigger layout refreshes for programmatic content changes, and remove height automation to revert elements to their original state.

Features

  • Text Input Resizing - Automatically adjusts the height of HTML textarea elements to fit their text content in real time.
  • Auto-Resizing Utilities - Automatically adjusts the height of HTML textarea elements to fit their text content in real time.
  • DOM Dimension Utilities - Provides a utility for managing the dimensions and scrolling behavior of input fields based on content changes.
  • Dynamic Height Implementations - Calculates required element height by measuring the total scrollable content area of the textarea.
  • Auto-Resizing Input Areas - Provides input fields that dynamically change their vertical size based on the length of the entered text.
  • Text Editors - Enables the creation of simple text editing interfaces where the input field expands to match the text length.
  • Client-Side Scripting - Functions as a lightweight browser script that handles real-time height recalculations for text inputs.
  • Style Property Manipulators - Programmatically updates the CSS height property of textarea elements in real time to fit their content.
  • UI Event Listeners - Triggers height recalculations by listening to keyboard input and window resize events.
  • Layout Recalculation Triggers - Exposes a manual trigger to force the recalculation of textarea height when content is changed programmatically.
  • Adaptive Vertical Heights - Recalculates the vertical size of a text area when external scripts change the content or layout.
  • Sizing Constraints - Limits how much a text input grows by using height boundaries and restoring scrollbars at the maximum limit.
  • Web Form Input Optimizations - Improves the typing experience in web forms by removing the need for manual scrollbars in multi-line text fields.
  • Input Height Constraints - Provides height boundaries that compare calculated content size against CSS min and max properties to manage overflow scrolling.

Star 历史

jackmoore/autosize 的 Star 历史图表jackmoore/autosize 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

jackmoore/autosize 是做什么的?

autosize is a client-side JavaScript utility that automatically adjusts the height of HTML textarea elements to fit their text content. It functions as a DOM layout tool designed to manage the dimensions and scrolling behavior of input fields in real time.

jackmoore/autosize 的主要功能有哪些?

jackmoore/autosize 的主要功能包括:Text Input Resizing, Auto-Resizing Utilities, DOM Dimension Utilities, Dynamic Height Implementations, Auto-Resizing Input Areas, Text Editors, Client-Side Scripting, Style Property Manipulators。

jackmoore/autosize 有哪些开源替代品?

jackmoore/autosize 的开源替代品包括: jessesquires/jsqmessagesviewcontroller — JSQMessagesViewController is a UIKit-based conversational UI framework and library for iOS. It provides a set of… marcj/css-element-queries — This project is a responsive CSS library and element dimension monitor. It provides a polyfill for CSS container… kenwheeler/cash — Cash is a lightweight JavaScript library for selecting and modifying HTML elements in modern browsers. It functions as… zdhxiong/mdui — mdui is a framework-agnostic UI library and design system based on Material Design 3 standards. It provides a… forkingdog/uitableview-fdtemplatelayoutcell — UITableView-FDTemplateLayoutCell is a specialized table view cell component for iOS designed to automatically… jaredreich/pell — Pell is a JavaScript text editor library and browser-based rich text editor. It provides a lightweight WYSIWYG HTML…

Autosize 的开源替代方案

相似的开源项目,按与 Autosize 的功能重合度排序。
  • jessesquires/jsqmessagesviewcontrollerJ

    jessesquires/JSQMessagesViewController

    11,080在 GitHub 上查看↗

    JSQMessagesViewController is a UIKit-based conversational UI framework and library for iOS. It provides a set of components for rendering interactive message streams, multimedia chat histories, and customizable input controllers within mobile applications. The framework features a layout engine that calculates dynamic bubble dimensions and handles orientation-aware rendering. It includes a resizing text input area with a customizable toolbar for sending and formatting messages, as well as support for group conversations with multiple participants. The library covers message rendering through

    Objective-C
    在 GitHub 上查看↗11,080
  • marcj/css-element-queriesmarcj 的头像

    marcj/css-element-queries

    4,243在 GitHub 上查看↗

    This project is a responsive CSS library and element dimension monitor. It provides a polyfill for CSS container queries, enabling styles to be applied based on an element's specific dimensions in environments where native browser support is unavailable. The library monitors the width and height of target DOM elements in real time, triggering custom callbacks whenever dimensions change. It adapts UI components by executing layout adjustments and style changes based on predefined size thresholds rather than the overall browser window size. The tool manages these adaptations through several me

    JavaScriptcsselement-querymedia-query
    在 GitHub 上查看↗4,243
  • kenwheeler/cashkenwheeler 的头像

    kenwheeler/cash

    7,039在 GitHub 上查看↗

    Cash is a lightweight JavaScript library for selecting and modifying HTML elements in modern browsers. It functions as a chainable element wrapper and DOM manipulation utility, providing a minimal alternative for managing browser DOM operations. The library uses a collection-based wrapper for DOM nodes, allowing multiple modifications and style updates to be performed in a single sequence. It is designed to provide a similar API for event handling and element management while maintaining a small footprint. The project covers a wide range of DOM manipulation capabilities, including element se

    JavaScript
    在 GitHub 上查看↗7,039
  • zdhxiong/mduizdhxiong 的头像

    zdhxiong/mdui

    4,517在 GitHub 上查看↗

    mdui is a framework-agnostic UI library and design system based on Material Design 3 standards. It provides a comprehensive set of reusable interface elements implemented as native Web Components, ensuring compatibility across different JavaScript frameworks. The library features a sophisticated theming system that supports light and dark modes, as well as the ability to generate dynamic color palettes from seed colors or image sources. It distinguishes itself with a high level of flexibility in visual customization, using CSS custom properties to control design tokens such as typography, cor

    TypeScriptcssjavascriptmaterial
    在 GitHub 上查看↗4,517
  • 查看 Autosize 的所有 30 个替代方案→