
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.
@4react/flex
Advanced tools
Flexbox components for React Applications.
<Flex row justify="space-between" align="center">
<Flex alignSelf="start" ... />
<Flex shrink grow ... />
<Flex
column
alignSelf="stretch"
grow={2}
justify="space-between"
align="center"
>
<Flex alignSelf="stretch" ... />
<Flex ... />
<Flex alignSelf="end" grow ... />
</Flex>
</Flex>
npm i @4react/flex
Generic div
element with display: flex
<Flex row justify="space-between" align="center">
...
</Flex>
Prop | Type | Default | Description |
---|---|---|---|
inline | boolean | false | Transform in a inline-flex element. |
direction | 'row' , 'column' | 'row' | Define the main-axis of the container i.e. where the flex items are placed. Corresponding of the flex-direction property (along with the reverse prop). |
row | boolean | false | Set the container main-axis to "horizontal". |
column | boolean | false | Set the container main-axis to "vertical". |
reverse | boolean | false | Reverse the container direction. |
justify | 'start' , 'end' , 'center' , 'space-between' , 'space-around' , 'space-evenly' | 'start' | Alignment of flex items along the main axis. Corresponding of the justify-content property. |
align | 'stretch' , 'start' , 'end' , 'center' , 'baseline' | 'stretch' | Alignment of flex items along the cross axis on the current line. Corresponding of the align-items property. |
lines | 'stretch' , 'start' , 'end' , 'space-between' , 'space-around' , 'space-evenly' | 'stretch' | Alignment of lines (when there is extra space in the cross-axis). Corresponding of the align-content property. |
wrap | boolean, 'reverse' | false | Controls if (and how) items will flow across multiple lines. |
className | string | - | Additional className for the component. |
style | object | - | Additional style object for the component. |
Description
// display: flex
<Flex>
// display: inline-flex
<Flex inline>
Description.
// row
<Flex>
<Flex row
<Flex direction="row">
// row-reverse
<Flex row reverse>
<Flex direction="row" reverse>
// column
<Flex column
<Flex direction="column">
// column-reverse
<Flex column reverse>
<Flex direction="column" reverse>
Description.
// justify-content
<Flex justify="start">
<Flex justify="center">
<Flex justify="space-between">
// align-items
<Flex align="start">
<Flex align="stretch">
<Flex align="center">
// align-content
<Flex lines="start">
<Flex lines="center">
<Flex lines="space-between">
Description.
// nowrap
<Flex>
// wrap
<Flex wrap>
// wrap-reverse
<Flex wrap="reverse">
<Flexed grow order={2} />
FAQs
Flexbox components for React Applications.
The npm package @4react/flex receives a total of 0 weekly downloads. As such, @4react/flex popularity was classified as not popular.
We found that @4react/flex 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.