Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@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
The npm package @bedrock-layout/center receives a total of 77 weekly downloads. As such, @bedrock-layout/center popularity was classified as not popular.
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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.