
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Every ecosystem needs its own lightbox, right? So does React.js.
All these item types come with a number of lightbox layout options.
You can install Reactbox from npm with one command:
npm install --save reactbox
or
yarn add reactbox
import reactbox from 'reactbox'
reactbox(items)
This will open Reactbox in your application, passing it items as an option.
Default: true
If the thumbnail carousel below the mainbox will be displayed. Carousel is only displayed on if the screen is 768+ px wide.
Example:
reactbox({
items: [...],
carousel: false
})
Defines the list of the sharing services displayed.
Default:
{
facebook: {
url: "//www.facebook.com/share.php?v=4&src=bm&u=%url%",
name: 'Facebook'
},
twitter: {
url: "//twitter.com/home?status=%url%"
name: 'Twitter'
},
googleplus: {
url: "//plus.google.com/share?url=%url%",
name: 'Google Plus'
},
reddit: {
url: "//reddit.com/submit?url=%url%",
name: 'Reddit'
},
digg: {
url: "//digg.com/submit?phase=2&url=%url%",
name: 'Digg'
}
stumbleupon: {
url: "http://www.stumbleupon.com/submit?url=%url%&title=%title%",
name: "Stumbleupon"
}
delicious: {
url: "//delicious.com/post?url=%url%",
name: 'Delicious'
}
pinterest: {
url: "https://www.pinterest.com/pin/create/button/?url=%url%&media=%image_url%&description=%description%&title=%title%",
name: 'Pinterest'
}
vk: {
url: "http://vk.com/share.php?url=%url%",
name: 'VK'
}
Example:
// Will only show Facebook for sharing
reactbox({
items: [...],
share: {
facebook: {
url: "//www.facebook.com/share.php?v=4&src=bm&u=%url%",
name: 'Facebook'
}
}
})
Color theme used. Valid values are null, "black" or "white".
Default: "black"
An array of the items you want to show in a lightbox. See below for the docs on the item description format.
Default: null
Example:
reactbox({
items: [{url: 'http:/example.com/img/image.jpg'}]
})
default: null
The URL of the object (image, video, ajax request, iframe).
default: image
The type of the item. Valid types are:
imagevideoajaxhtmliframedefault: null
Thumbnail URL for the carousel. When no thumbnail is provided - the item does not show in a carousel (but is still shown in a lightbox).
default: null
Item description object:
{
style: 'none', // one of the 'none', 'mini', 'right', 'bottom'
title: 'some title', // description title
text: 'Some text' // description text
}
default: null
Item download URL. Enables the download link at the top of the lightbox window.
default: null
Item alt description to be added as alt tag to the thumbnails and main lightbox image.
FAQs
Powerful React.js-based lightbox
The npm package reactbox receives a total of 1 weekly downloads. As such, reactbox popularity was classified as not popular.
We found that reactbox 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.