𝟴 𝗡𝗮𝘁𝗶𝘃𝗲 𝗛𝗧𝗠𝗟 𝗘𝗹𝗲𝗺𝗲𝗻𝘁𝘀 𝗬𝗼𝘂 𝗗𝗼𝗻'𝘁 𝗡𝗲𝗲𝗱 𝗔 𝗟𝗶𝗯𝗿𝗮𝗿𝘆 𝗙𝗼𝗿

Stop fighting your browser. Stop installing libraries for things you already have.

Try these 8 native HTML elements:

  • : Use for modals. It handles focus and the backdrop.
  • and : Use for accordions.
  • popover: Use for menus. It needs zero JavaScript.
  • : Use for sliders. Style it with CSS.
  • : Use for color pickers.
  • : Use for calendars. It works on mobile.
  • loading="lazy": Use for image loading.

Native first does not mean zero dependencies. It means you check the docs before you use npm.

Libraries freeze your code. Browsers improve. You inherit new features for free.

Ship less code. Get accessibility. Spend less time on maintenance.

Check the platform docs first. Half the time, the feature is one tag away.

Source: https://dev.to/dimonb19a/8-native-html-elements-you-dont-need-a-library-for-29b4