@times-components/slice-layout

0.52.0 • Public • Published

Slice layout

Slice layouts are re-usable templates. A slice layout lays itself out according to a set of self-defined rules. The slice layout also provides a suggested default configuration that can be applied to the given components that are to be laid out within the template - this configuration is provided in the form of CSS class names and JS objects. The consumer of slice layout can opt-in or out of utilising these suggested default configurations

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests with jest.

yarn test:web

Visit the official storybook to see our available slice layout templates.

Future

Template creation could be done using a CLI to create default files in the accepted architectural format

Package Sidebar

Install

npm i @times-components/slice-layout

Weekly Downloads

1,888

Version

0.52.0

License

BSD-3-Clause

Unpacked Size

133 kB

Total Files

17

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools