New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@bedrock-layout/center

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock-layout/center

bedrock-layout center


Version published
Weekly downloads
279
increased by14.34%
Maintainers
1
Weekly downloads
 
Created

@bedrock-layout/center

Layout helper that centers the content

Full docs at: bedrock-layout.dev

When to Use

Used to center content on the screen

How to install

npm install @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>;

API

PropertyDescriptionTypeDefault
maxWidthmaxWidth of the contentnumbermedium breakpoint
centerTextcenter align textbooleanfalse
centerChildrencenters the childrenbooleanfalse

FAQs

Package last updated on 15 Dec 2020

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