Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
rjs-navbar is a navigational header component for react web apps.
Install with npm:
npm i rjs-navbar
Install with yarn
yarn add rjs-navbar
import Footer from 'rjs-navbar/Navbar';
<Navbar
logo={<img src="http://mrmrs.github.io/photos/u/011.jpg" style={{width:'100%',height:'100%'}}/>}
activeLabel={(val) => setGoto(val)}
searchQuery={(val) => setGoto(val)}
left={"search"}
center={["item 1", "item2","item 1", "item2"]}
right={"logo"}
search={true}
foreGroundStyle={{color:'white',padding:3,border:'1px solid white',width:'100%', margin:2,fontSize:17, fontWeight:'bold'}}
backGroundStyle={{background:'linear-gradient(to right, rgb(0, 0, 255), rgb(255, 0, 0))',opacity:0.9}}
searchStyle={{border:'1px solid green', width:200, height:30}}
/>
Props | Details | Examples |
---|---|---|
logo | can be a string or a react component | <img src="http://mrmrs.github.io/photos/u/011.jpg"style={{width:'100%',height:'100%'}}/> |
activeLabel | returns the selected label | {(val) => setGoto(val)} |
searchQuery | returns the search query | {(val) => setGoto(val)} |
left | left side component of navbar can be on of : "search","logo" or and array of labels | ["item 1", "item 2"] , "logo" |
center | center component of navbar can be on of : "search","logo" or and array of labels | ["item 1", "item 2"] , "logo" |
right | right side component of navbar can be on of : "search","logo" or and array of labels | ["item 1", "item 2"] , "logo" |
search | sets the search input, can be true or false | search={true} |
foreGround | object containg styles for the foreground | {color:'white',padding:3,border:'1px solid white',width:'100%', margin:2,fontSize:17, fontWeight:'bold'} |
backGroundStyle | object containing styles for the background | {background:'linear-gradient(to right, rgb(0, 0, 255), rgb(255, 0, 0))',opacity:0.9} |
searchStyle | object containing styles for the search input box | {border:'1px solid green', width:200, height:30} |
FAQs
rjs-navbar is a navigational header component for react web apps.
The npm package rjs-navbar receives a total of 0 weekly downloads. As such, rjs-navbar popularity was classified as not popular.
We found that rjs-navbar 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.