This package has been deprecated

Author message:

This package has been replaced by @guardian/source-react-components.

@guardian/src-layout
TypeScript icon, indicating that this package has built-in type declarations

3.13.0 • Public • Published

Layout

📣 For more context and visual guides relating to Layout usage on the Source Design System website

Install

$ yarn add @guardian/src-layout

Container

Centres the page content and applies a width that corresponds to the grid at the current breakpoint.

API

See storybook.

How to use

For context and visual guides relating to Container usage see the Source Design System website.

Stack

Children will be stacked one on top of the other.

API

See storybook.

How to use

For context and visual guides relating to Stack usage see the Source Design System website.

Columns

Columns will be arranged side by side on a single row, with the specified width.

Use Columns in conjunction with Container to help the columns align neatly with the Guardian's grids.

API

See storybook.

How to use

For context and visual guides relating to Columns usage see the Source Design System website.

Hide

Hide a component above or below a certain breakpoint

API

See storybook.

How to use

For context and visual guides relating to Hide usage see the Source Design System website.

Inline

API

See storybook.

How to use

For context and visual guides relating to Inline usage see the Source Design System website.

Tiles

API

See storybook.

How to use

For context and visual guides relating to Tiles usage see the Source Design System website.

Keywords

none

Install

npm i @guardian/src-layout

DownloadsWeekly Downloads

14

Version

3.13.0

License

Apache-2.0

Unpacked Size

143 kB

Total Files

69

Last publish

Collaborators

  • 0x101
  • ab-gnm
  • ajwl
  • akash1810
  • alinaboghiu.g
  • andyg421
  • annabeddow
  • aoifemcl15
  • arelra
  • david.furey.gu
  • dlawes
  • dskamiotis
  • frankie_hammond
  • georgeblahblah
  • ghaberis
  • guardian-developers
  • idris-elliott-guardian
  • itsibitzi
  • jacobwinch
  • jamesgorrie
  • jamieb-gu
  • joecowton1
  • jsherbert
  • justinpinner
  • marjank
  • mchv
  • michaelclapham_gnm
  • mxdvl
  • nicl
  • novembertang
  • olly.namey.guardian
  • pete_f
  • philmcmahon
  • reetta
  • rhysmills
  • rikroots
  • robertkenny_gu
  • rtyley
  • sam.hession
  • seanclarkeguardian
  • simonadcock-gu
  • sndrs
  • thaliasilver
  • tjmw
  • tomrf1
  • yusuf.faraji
  • zekehg