react-html-props
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "react-html-props", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "Justin Mahar <contact@justinmahar.com>", | ||
@@ -5,0 +5,0 @@ "description": "Convenience TypeScript type definitions for all HTML element props.", |
@@ -25,4 +25,8 @@ <h2 align="center"> | ||
- **đŠī¸ Convenience TypeScript HTMLAttributes prop types for all HTML elements** | ||
- Easily reference props for any HTML element with shorthand like `DivProps`. | ||
- **đŠī¸ TypeScript types for all HTML element props** | ||
- Easily reference props for any HTML element with simple names like `DivProps`. | ||
- **đ§ Easy to remember** | ||
- Types start with the HTML element name, so you'll never end up scratching your head. | ||
- **đ Optional types for React ref** | ||
- Where needed, use types for props inheriting `ref` from `React.DetailedHTMLProps`. | ||
@@ -190,3 +194,3 @@ ## Installation | ||
A `ref` may not always be applicable, so it remains optional to give you the flexibility. | ||
> A `ref` may not always be applicable, so it remains optional to give you the flexibility. For instance, components returned by [`styled-components`](https://styled-components.com/) do not support a `ref`. | ||
@@ -193,0 +197,0 @@ ## TypeScript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32849
234