@knyt/html-type
v0.4.0
Published
HTML Type Definitions
Downloads
193
Readme
@knyt/html-type
HTML Type Definitions
This package provides TypeScript type definitions for HTML elements and their attributes. It is designed to be used with Knyt, but can also be used independently.
Install
npm install @knyt/html-typeUsage
import type { HTMLDivAttributes } from "@knyt/html-type";
const attrs = {
id: "my-div",
class: "my-class",
style: "color: red;",
} satisfies HTMLDivAttributes;Updates
See the CHANGELOG for a list of changes.
Credits
This package is a fork of @michijs/htmltype. 🙏
License
This package is licensed under the MIT License.
