Skip to main content

Harshal V. LADHE

Native Form Controls

Getting the most from the browser's own form controls instead of rebuilding them as custom widgets.

Content tagged native-controls

  • Tutorial:Auto-Growing Textareas with CSS field-sizing: content

    Auto-grow textareas with one line of CSS, no JavaScript.
    Make a textarea grow and shrink with its text using CSS field-sizing: content: no scrollHeight JavaScript, plus size limits, fallbacks and browser support.
    Published at:
    Categories:CSS
    Estimated reading time:8 min read
  • Tutorial:Theming Native Controls with accent-color

    Theme native checkboxes, radios and sliders with one property.
    The accent-color property themes the checked and filled parts of native checkboxes, radio buttons, switches, range sliders and progress bars — including their indeterminate states — while keeping real browser controls with full native behaviour and accessibility, plus how it pairs with color-scheme and what it leaves alone.
    Published at:
    Categories:CSS
    Estimated reading time:8 min read