This package has been deprecated

Author message:

Slice package is deprecated. Please use @times-components/slice-layout

@times-components/slice

3.1.27 • Public • Published

Slice

Slices are re-usable templates. A slice template lays itself out according to a set of self-defined rules. The slice 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 for web, and a JS API for native. The consumer of slice 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 on each platform with jest.

yarn test:all
yarn test:android
yarn test:ios
yarn test:web

Visit the official storybook to see our available slice 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

Weekly Downloads

3

Version

3.1.27

License

BSD-3-Clause

Unpacked Size

134 kB

Total Files

32

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools