A teaser React component/Scrivito widget for the Scrivito CMS.
Open your terminal.
$ cd
to your Scrivito project
$ npm install scrivito-reference-teaser
Import the widget in your javascript (e.g. in src/index.js
or src/Widgets/index.js
).
import "scrivito-reference-teaser";
The Reference Teaser Widget renders a teaser from a referenced page. Includes title image, title and subtitle if set on referenced page.
In the widget properties you can set:
- Page
$ npm run eslint
and
$ npm run es-check