react-html-props
Advanced tools
Comparing version 1.0.23 to 1.0.24
{ | ||
"name": "react-html-props", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"author": "Justin Mahar <contact@justinmahar.com>", | ||
@@ -5,0 +5,0 @@ "description": "Convenient TypeScript types for all React HTML props.", |
@@ -60,2 +60,14 @@ <h2 align="center"> | ||
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> | ||
``` | ||
## Unpacking Attributes | ||
@@ -75,14 +87,2 @@ | ||
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 | ||
@@ -89,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