![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@ludens-reklame/react-crisscross
Advanced tools
A simple and flexible layout component for React based on CSS flexbox
With yarn
yarn add react-crisscross
With npm
npm install react-crisscross
import Layout from 'react-crisscross';
<Layout container>
<Layout item>{/* Content */}</Layout>
</Layout>;
You have accesss to all the same properties as in flexbox.
Property | Value | Description |
---|---|---|
xs | object | Use container and/or item properties on the xs media query |
sm | object | Use container and/or item properties on the sm media query |
md | object | Use container and/or item properties on the md media query |
lg | object | Use container and/or item properties on the lg media query |
xl | object | Use container and/or item properties on the xl media query |
Property | Value | Description |
---|---|---|
direction | 'row' (default), 'column' , 'row-reverse' , 'column-reverse' | Same as the flex-direction property in flexbox. |
justify | 'flex-start' (default), 'flex-end' , 'center' , 'space-between' , 'space-around' | Same as the justify-content property in flexbox. |
alignItems | 'stretch' (default), 'flex-start' , 'flex-end' , 'center' , 'baseline' | Same as the align-items property in flexbox. |
wrap | 'nowrap' (default), 'wrap' , 'wrap-reverse' | Same as the flex-wrap property in flexbox. |
gap | number | Size of gap between each flex item. |
Property | Value | Description |
---|---|---|
flex | string (eg. '1 0 auto') | Same as the flex property in flexbox. |
grow | number | Same as the flex-grow property in flexbox. |
shrink | number | Same as the flex-shrink property in flexbox. |
alignSelf | 'auto' (default), 'flex-start' , 'flex-end' , 'center' , 'baseline' , 'stretch' | Same as the flex-grow property in flexbox. |
order | number | Same as the order property in flexbox. |
Sometimes you want to override the default settings for the layout, such as media queries. React Crisscross ships with a module that can help you inject custom settings. Here's an example:
import Layout, { LayoutProvider } from 'react-crisscross';
const mySettings = {
mediaQueries: {
lg: 1500
}
}
<LayoutProvider settings={mySettings}>
<Layout container>
<Layout item>
{/* Content */}
</Layout>
</Layout>
</LayoutProvider>
These settings can be overwritten by the LayoutProvider
.
const settings = {
mediaQueries: {
xs: 0,
sm: 600,
md: 960,
lg: 1280,
xl: 1920
},
columns: 12
};
FAQs
A flexible layout component for React based on CSS flexbox
The npm package @ludens-reklame/react-crisscross receives a total of 4 weekly downloads. As such, @ludens-reklame/react-crisscross popularity was classified as not popular.
We found that @ludens-reklame/react-crisscross demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.