Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
react-tiny-link
Advanced tools
Convert your links into beautiful previews
Yet anotherReact link preview component with cards for web without a specific backend.
No. You may need a CORS
proxy to use this component. But if you dont have one, we made the component to use https://cors-anywhere.herokuapp.com as default proxy. Thanks to Rob. It saves my time for accessing urls.
npm install --save react-tiny-link
import { ReactTinyLink } from 'react-tiny-link'
<ReactTinyLink
cardSize="small"
showGraphic={true}
maxLine={2}
minLine={1}
url="https://www.amazon.com/Steve-Madden-Mens-Jagwar-10-5/dp/B016X44MKA/ref=lp_18637582011_1_1?srs=18637582011&ie=UTF8&qid=1550721409&sr=8-1"
/>
PropName | Description | PropType | value | required |
---|---|---|---|---|
url | URL to be display as preview | string | true | |
cardSize | Size of the card | string | default (small ) small ,large | false |
maxLine | Maximum number of line to ellipsis | number | 2 | false |
minLine | Minimum number of line to ellipsis | number | 1 | false |
width | Width of the link preview card | number | default(100vw ) | false |
header | Default Header content | string | null | false |
description | Default description content | string | null | false |
proxyUrl | Proxy URL to pass that resolve CORS | string | default(https://cors-anywhere.herokuapp.com ) | false |
showGraphic | Boolean value to display graphics | boolean | default(true ) | false |
autoPlay | Boolean value to play the media if provided url is video | boolean | default(false ) | false |
defaultMedia | Default value to provide the media for failure cases | string | N.A | false |
Fork it
Create your feature branch (git checkout -b my-new-feature
)
Commit your changes (git commit -am 'Added some feature'
)
Push to the branch (git push origin my-new-feature
)
Create new Pull Request
Thanks goes to these wonderful people (emoji key):
Vladimir Moushkov 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
> Convert your links into beautiful previews
The npm package react-tiny-link receives a total of 4,064 weekly downloads. As such, react-tiny-link popularity was classified as popular.
We found that react-tiny-link demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.