react-html-props
Advanced tools
Comparing version 1.0.22 to 1.0.23
{ | ||
"name": "react-html-props", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"author": "Justin Mahar <contact@justinmahar.com>", | ||
@@ -5,0 +5,0 @@ "description": "Convenient TypeScript types for all React HTML props.", |
@@ -27,3 +27,3 @@ <h2 align="center"> | ||
Using these types makes it easy to support all standard HTML props for your components. | ||
Using these types makes it easy to support all standard HTML props, such as `style` and `className`, in your own components. | ||
@@ -75,2 +75,14 @@ ### Features include: | ||
You can then use all props supported by `div` in your own component: | ||
```tsx | ||
<MyComponent | ||
className="text-center" | ||
style={{ background: 'blue', color: 'white' }} | ||
onClick={() => console.log('Get schwifty!')} | ||
> | ||
Show me what you got | ||
</MyComponent> | ||
``` | ||
## Mixing With Custom Props | ||
@@ -77,0 +89,0 @@ |
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
49743
255