html tags
v4.0.0
รายการแท็ก HTML มาตรฐาน
มันเป็นเพียงสองไฟล์ JSON ที่สามารถใช้ในทุกสภาพแวดล้อม
มันตั้งใจทิ้งแท็กที่ล้าสมัย
npm install html-tags
import htmlTags from 'html-tags' ;
console . log ( htmlTags ) ;
//=> ['a', 'abbr', 'acronym', …]
และช่องว่าง (ปิดตัวเอง) แท็ก:
import { voidHtmlTags } from 'html-tags' ;
console . log ( voidHtmlTags ) ;
//=> ['area', 'base', 'br', …]
ตรวจสอบให้แน่ใจว่าได้อัปเดตประเภทใน index.d.ts
เมื่อเปลี่ยนองค์ประกอบ HTML