Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@bedrock-layout/center
Advanced tools
@bedrock-layout/center
A layout helper component that centers the content
Full docs at: bedrock-layout.dev
Use the Center
component when you want to center the content and clamp it at the desired width, and can also center the children and text alignment.
npm install @bedrock-layout/center
or
yarn add @bedrock-layout/center
import { Center } from '@bedrock-layout/center';
<Center>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
</Center>;
For styling purposes, you can select data-bedrock-center
.
Property | Description | Type | Default |
---|---|---|---|
maxWidth | Max width of the content | number, string | medium (1023px) |
centerText | Center align the text | boolean | false |
centerChildren | Center align the child components | boolean | false |
FAQs
bedrock-layout center
We found that @bedrock-layout/center demonstrated a healthy version release cadence and project activity because the last version was released less than 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.