4.4.0 • Published 1 month ago

@bedrock-layout/inline v4.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@bedrock-layout/inline

Inline is a layout helper that creates consistent spacing around inline items. It can also have a child element that can stretch to fill any excess spaces

Full docs at: bedrock-layout.dev


When to Use

Inline can be used to create inline layouts where there is a consistent space around its child elements. Unlike the InlineCluster component, the child elements inside Inline components will not wrap. With Inline component, you can also specify a child element that can stretch to fill excess spaces.


How to install

npm install @bedrock-layout/inline

or

yarn add @bedrock-layout/inline


Usage

import { Inline } from '@bedrock-layout/inline';

<Inline stretch={1} gutter='size3' justify='start' align='start'>
  <span>Lorem ipsum dolor</span>
  <span>sit amet consectetur</span>
  <span>adipisicing elit.</span>
</Inline>;

data-attribute

For styliing purposes, you can select data-bedrock-inline.


API

* required

PropertyDescriptionTypeDefault
gutter*Space inbetween each child elementOne of Spacing**-
stretchChild or children that will stretch to fill available spaceOne of: all, start, end, index of the child-
justifyInline justification of the childrenOne of: start, end, centerstart
alignBlock alignment of the childrenOne of: start, end, centerstart
switchAtThe width threshold at which the container will switch to stack layoutOne of: CSS length, number-

** By default, Spacing is one of the spacing-constants values, but this can be overwritten using the ThemeProvider from @bedrock-layout/spacing-constants

4.4.0

1 month ago

4.3.0

2 months ago

4.2.9

3 months ago

4.2.8

3 months ago

4.2.10

3 months ago

4.2.7

4 months ago

4.2.6

4 months ago

4.2.5

5 months ago

4.1.7

10 months ago

4.2.3

7 months ago

4.2.2

7 months ago

4.2.4

7 months ago

4.2.1

8 months ago

4.2.0

8 months ago

4.1.4

1 year ago

4.1.6

1 year ago

4.1.5

1 year ago

4.1.3

1 year ago

4.1.2

1 year ago

4.1.1

1 year ago

4.0.4

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

3.1.2

1 year ago

4.1.0

1 year ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.5.4

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.5.3

2 years ago

2.4.0

2 years ago

2.5.0

2 years ago

2.3.8

2 years ago

2.3.7

2 years ago

2.3.9

2 years ago

2.3.4

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.10

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.3.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.3

2 years ago

2.1.0

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

3 years ago

2.0.22

3 years ago

2.0.21

3 years ago

2.0.20

3 years ago

2.0.19

3 years ago

2.0.16

3 years ago

2.0.17

3 years ago

2.0.18

3 years ago

2.0.15

3 years ago

2.0.13

3 years ago

2.0.14

3 years ago

2.0.11

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.3

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.8

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago