
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@kenshooui/react-tree
Advanced tools
React Tree is a straight forward component that allows a user to display and manage a hierarchical structure of items in a clear and comfortable way.
React Tree is a straight forward component that allows a user to display and manage a hierarchical structure of items in a clear and comfortable way.
The basic tree is built using @emotion/core, and supports both styling and component renderers customizations.
Examples can be found - here
Installation using npm:
npm install @kenshooui/react-tree --save
Installation using Yarn:
yarn add @kenshooui/react-tree
import ReactTree from "@kenshooui/react-tree";
const structure = [
["Profiles", "Performance", "Clicks"],
["Profiles", "Performance", "Imp"],
["Profiles", "Attribute", "Agency"],
["Profiles", "Attribute", "Progress"],
["Profiles", "Attribute", "Create Date"],
["Campaigns", "Performance", "Clicks"],
["Campaigns", "Performance", "Cost"],
["Campaigns", "Performance", "CTR"],
["Campaigns", "Attribute", "campaign name"],
["Ad Groups", "Attribute", "Ad Group Name"]
];
<ReactTree
structure={structure}
title={"Add filter criteria"}
onSelect={() => {}}
/>;
Can be found - here
The basic tree gets "styles" object property.
If the "styles" object is empty, the basic tree will use the default styles.
The "styles" object can override any of the following:
You can replace the renderers of the following components:
Container
Use the treeContainerRenderer
to replace the default component.
Each treeContainer receives the following props:
containerRef
- Holds a reference to the tree container component
children
- Holds all sub components (like header, input, items, etc..)
getStyles
- Gets relevant styles
styles
- Enables using customized styles
Header
Use the headerRenderer
to replace the default component.
Each header receives the following props:
headerRef
- Holds a reference to the header component
parents
- Holds the parents of the current level.
For example for the following structure: ["Profiles", "Performance", "Clicks"]
onClick
- Triggers the back event on click
title
- The title of the header. Displayed on the first level.
getStyles
- Gets relevant styles
styles
- Enables using customized styles
backIconRenderer
- Use the backIconRenderer
to replace the default back button component.
Input
Use the inputRenderer
to replace the default component.
Each header receives the following props:
inputRef
- Holds a reference to the input component
searchTerm
- Holds the searched value
onInputChange
- Triggers set searchTerm event on change
getStyles
- Gets relevant styles
styles
- Enables using customized styles
inputIconRenderer
- Use the inputIconRenderer
to replace the default input icon component.
clearIconRenderer
- Use the clearIconRenderer
to replace the default clear input icon component.
Items
Use the itemsRenderer
to replace the default component.
Each header receives the following props:
getStyles
- Gets relevant styles
styles
- Enables using customized styles
children
- All items
Item
Use the itemRenderer
to replace the default component
Each header receives the following props:
getStyles
- Gets relevant styles
styles
- Enables using customized styles
searchTerm
- Holds the searched value
item
- Represents an item from the given structure
onClick
- Is called when clicking on an item
forwardIconRenderer
- Use the forwardIconRenderer
to replace the default forward icon component
selectedItem
- Represents the current selected item. Is relevant when markSelectedItem = true
No Results
Use the noResultsRenderer
to replace the default component.
getStyles
- Gets relevant styles
styles
- Enables using customized styles
text
- Displayed when there are no results
noResultsIconRenderer
- Use the noResultsIconRenderer
to replace the default no results warning icon component.
FAQs
React Tree is a straight forward component that allows a user to display and manage a hierarchical structure of items in a clear and comfortable way.
The npm package @kenshooui/react-tree receives a total of 2 weekly downloads. As such, @kenshooui/react-tree popularity was classified as not popular.
We found that @kenshooui/react-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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.