Skip to content

This package contains common layout and features like user tracking, feedback, and errors logging for Cube's example applications.

License

Notifications You must be signed in to change notification settings

cubedevinc/example-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cube examples wrapper

This package contains common layout and features like user tracking, feedback, and errors logging for Cube's example applications.

Installation

Install package via yarn:

yarn add @cube-dev/example-wrapper

Usage

At the entry point of your app, import createExampleWrapper helper:

import createExampleWrapper from "@cube-dev/example-wrapper";

Define an example description object and fill it with your values:

const exampleDescription = {
  title: "demo title",
  text: `demo description text`,
};

Note: you can use HTML tags inside the text template string.

Call helper and pass exampleDescription into it:

createExampleWrapper(exampleDescription);

About

This package contains common layout and features like user tracking, feedback, and errors logging for Cube's example applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published