
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-flexify
Advanced tools
npm install react-flexify --save
import Flex from 'react-flexify';
<Flex row> // flex container
<Flex grow='1' shrink='2' basis='400px'>hi</Flex> // flex-item,
<Flex flex='1 2 400px' tag='span'>hi</Flex> // flex-item, <span>hi</span>
<div> hi </div> // normal html element
<Flex column alignItems='stretch' tag='section' className='bla' data-custom='hi'>
<aside>...</aside>
....
</Flex> // flex-container, section.bla.fcol.f-ai-s(data-custom='hi') > aside
</Flex>
<Flex inline // display: inline-flex
row // flex-direction, default
column // flex-direction: column
justifyContent='flex-start|...',
alignItems='center'
alignContent='center',
alignSelf='auto',
order='1',
wrap='wrap'
tag='article' // wrapper html element tag, default: 'div'
grow='1'
shrink='1',
basis='1',
flex='1 2 400px'
data-custom-data // custom attrs
>
</Flex>
All props are optional. if none of inline|row|column
is present, then just render this.props.children
wrapped with tag
(default is div
)
inline
=> flex display level, set this to change to inline-flex
. (default is flex
)
row|column
=> A flex container, with flex-direction: row|column; and other default rules display: flex; justify-content: space-around; align-items: center; align-content: center; flex-wrap: wrap
... set other props to override its default value.
can also pass other props(data-
), will be set on wrapper element
FAQs
react flex flexbox
The npm package react-flexify receives a total of 3 weekly downloads. As such, react-flexify popularity was classified as not popular.
We found that react-flexify 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.