
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@fe.whnhouse/flex.box
Advanced tools
You can simply install this Repo via npm
. It requires you to use styled-components
and react
(they are listed as peer dependencies of this project).
npm install @fe.whnhouse/flex.box
yarn add @fe.whnhouse/flex.box
The module exposes two Styled Components, FlexParent
and FlexChild
. Together, they allow the combination of all flex props, converted in a simple API:
interface IFlexChildProps {
grow?: number
shrink?: number
order?: number
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
basis?: number | 'auto'
style?: React.CSSProperties
}
interface IFlexParentProps {
fullWidth?: boolean
fullHeight?: boolean
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-around' | 'space-between' | 'space-evenly'
align?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline'
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-around' | 'space-between' | 'strech'
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse'
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'
style?: React.CSSProperties
}
The components can then simply be used like this:
const App = () => {
return (
<FlexParent direction="column justify="space-between" align="center">
<FlexChild>First Child</FlexChild>
<FlexChild>Second Child</FlexChild>
<FlexChild>Third Child</FlexChild>
</FlexParent>
)
}
The example
folder provides a react-app using this module as example. Feel free to take a look.
FAQs
A Flex and Box React Component Wrapper around Flexbox.
We found that @fe.whnhouse/flex.box 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.