Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-html-props

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-html-props - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc