Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bedrock-layout/center

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock-layout/center

bedrock-layout center

  • 3.2.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@bedrock-layout/center

A layout helper component that centers the content

Full docs at: bedrock-layout.dev


When to Use

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.


How to install

npm install @bedrock-layout/center

or

yarn add @bedrock-layout/center


Usage

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>;

data-attribute

For styling purposes, you can select data-bedrock-center.


API

PropertyDescriptionTypeDefault
maxWidthMax width of the contentnumber, stringmedium (1023px)
centerTextCenter align the textbooleanfalse
centerChildrenCenter align the child componentsbooleanfalse

Keywords

FAQs

Package last updated on 20 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc