Skip to content

Cursor JSTwig

Use the cursor component to add a custom cursor to your project.

Usage

After you install the package, include the template in your project:

js
import { Base, createApp } from '@studiometa/js-toolkit';
import { Cursor } from '@studiometa/ui';

class App extends Base {
  static config = {
    name: 'App',
    components: {
      Cursor,
    },
  };
}

export default createApp(App);
twig
{% include '@ui/Cursor/Cursor.twig' only %}