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

react-tiny-link

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tiny-link

> Convert your links into beautiful previews

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-73.43%
Maintainers
1
Weekly downloads
 
Created
Source

Convert your links into beautiful previews

Yet anotherReact link preview component with cards for web without a specific backend.

CORS enabled?

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.

Installation

npm install --save react-tiny-link

Usage & Configuration

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"
/>

Props & methods

PropNameDescriptionPropTypevaluerequired
urlURL to be display as previewstringtrue
cardSizeSize of the cardstringdefault (small) small,largefalse
maxLineMaximum number of line to ellipsisnumberfalse
minLineMinimum number of line to ellipsisnumberfalse
widthWidth of the link preview cardnumberdefault(100vw)false
proxyUrlProxy URL to pass that resolve CORSstringdefault(https://cors-anywhere.herokuapp.com)false
showGraphicBoolean value to display graphicsbooleandefault(true)false
autoPlayBoolean value to play the media if provided url is videobooleandefault(false)false

Demo App &

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

Keywords

FAQs

Package last updated on 23 Feb 2019

Did you know?

Socket

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.

Install

Related posts

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