![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.
@purpurds/grid
Advanced tools
import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
import * as GridStories from "./src/grid.stories"; import * as GridItemStories from "./src/grid.item.stories"; import packageInfo from "./package.json";
Version {packageInfo.version}
Add the dependency to your consumer app like "@purpurds/purpur": "^x.y.z"
The standard usage is to have multiple elements directly as children of the Grid
component. It's also possible to only have one, to get the standard page padding, max width and prevent getting gaps between elements.
In MyApp.tsx
import "@purpurds/purpur/styles";
In MyComponent.tsx
import { Grid } from "@purpurds/purpur";
export const MyComponent = () => {
return (
<Grid colsSm={2} colsMd={4} colsLg={6}>
<div>Grid item 1</div>
<div>Grid item 2</div>
<div>Grid item 3</div>
<div>Grid item 4</div>
<div>Grid item 5</div>
<div>Grid item 6</div>
</Grid>
);
};
noGap
import { Grid } from "@purpurds/purpur";
export const MyComponent = () => {
return (
<Grid noGap colsMd={3}>
<div>Grid item 1</div>
<div>Grid item 2</div>
<div>Grid item 3</div>
</Grid>
);
};
Besides noGap
, noColGap
and noRowGap
are also available
import { Grid } from "@purpurds/purpur";
export const MyComponent = () => {
return (
<Grid>
<Grid colsSm={1} colsMd={3} colsLg={3}>
<div>Grid item 1</div>
<div>Grid item 2</div>
<div>Grid item 3</div>
</Grid>
<Grid colsSm={1} colsMd={2} colsLg={2}>
<div>Grid item 4</div>
<div>Grid item 5</div>
</Grid>
<Grid colsSm={1} colsMd={2} colsLg={2}>
<div>Grid item 6</div>
<div>Grid item 7</div>
</Grid>
</Grid>
);
};
import { Grid } from "@purpurds/purpur";
export const MyComponent = () => {
return (
<Grid>
<Grid.Item colSpanSm={2} colSpanMd={5} colSpanLg={3}>
Grid item 1
</Grid.Item>
<Grid.Item colSpanSm={2} colSpanMd={3} colSpanLg={9}>
Grid item 2
</Grid.Item>
<Grid.Item colSpanSm={4} colSpanMd={2} colSpanLg={6}>
Grid item 3
</Grid.Item>
<Grid.Item colSpanSm={4} colSpanMd={6} colSpanLg={6}>
Grid item 4
</Grid.Item>
</Grid>
);
};
FAQs
import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
The npm package @purpurds/grid receives a total of 1,517 weekly downloads. As such, @purpurds/grid popularity was classified as popular.
We found that @purpurds/grid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.