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

@bedrock-layout/center

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock-layout/center

bedrock-layout center

2.1.0
Source
npm
Version published
Weekly downloads
323
29.72%
Maintainers
1
Weekly downloads
 
Created
Source

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

data-attribute

For purposes of styling you can select data-bedrock-layout-center.

API

PropertyDescriptionTypeDefault
maxWidthmaxWidth of the contentnumber, stringmedium breakpoint
centerTextcenter align textbooleanfalse
centerChildrencenters the childrenbooleanfalse

Keywords

center

FAQs

Package last updated on 02 Jul 2021

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