3.2.13 • Published 3 months ago

@bedrock-layout/center v3.2.13

Weekly downloads
17
License
MIT
Repository
github
Last release
3 months ago

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

3 months ago

3.2.12

6 months ago

3.2.11

8 months ago

3.2.9

9 months ago

3.2.8

9 months ago

3.2.10

9 months ago

3.2.7

10 months ago

3.2.6

10 months ago

3.2.5

12 months ago

3.1.8

1 year ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.2.4

1 year ago

3.2.3

1 year ago

3.1.7

1 year ago

3.1.6

2 years ago

3.1.5

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.4

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.7.2

2 years ago

3.1.0

2 years ago

2.7.1

2 years ago

2.7.0

2 years ago

2.6.5

2 years ago

2.6.4

2 years ago

2.6.1

3 years ago

2.6.3

3 years ago

2.6.2

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.2.5

3 years ago

2.2.6

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.4

3 years ago

2.1.8

3 years ago

2.1.9

3 years ago

2.1.6

3 years ago

2.1.7

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.7

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago