Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-matrix-tree
Advanced tools
React-matrix-tree allows you to create tree view with different types of matrix.
React-matrix-tree allows you to create tree view with different types of matrix.
$ npm install --save react-matrix-tree
$ yarn add react-matrix-tree
onClick
hooks. Can pass onclick event when user interacttooltip
When user hovers on.imageSource
.isMobile
.import React from 'react'
import { Tree } from 'react-matrix-tree'
function App() {
const data = [{ title: 'Too Easy' }]
return (
<div>
<Tree color='red' data={data} isMobile={false} />
</div>
)
}
Properties used to customise the rendering:
Name | Type | Description |
---|---|---|
color | String | Arrow color of parent to child |
data | Array | used to renders a tree view |
isMobile | Boolean | Used you to manage responsiveness |
Name | Type | Description |
---|---|---|
title | String | Tree title |
imageSource | String | optional display's a image |
tooltip | String | optional Displays a given content when user hovers on title |
onClick | func | optional Calls the given function when user clicks on title and pass two parameters, first one is click event and second is the object of tree prop |
data | Array | optional Child's array |
A demo is worth a thousand words
Show your ❤️ and support by giving a ⭐. Any suggestions are welcome!
Licensed under MIT
FAQs
React-matrix-tree allows you to create tree view with different types of matrix.
The npm package react-matrix-tree receives a total of 2 weekly downloads. As such, react-matrix-tree popularity was classified as not popular.
We found that react-matrix-tree 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.