How to use the use-sidecar.createSidecarMedium function in use-sidecar

To help you get started, we’ve selected a few use-sidecar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github theKashey / react-remove-scroll / src / medium.ts View on Github external
import { createSidecarMedium } from 'use-sidecar';

export const effectCar = createSidecarMedium();
github theKashey / react-focus-on / src / medium.ts View on Github external
import { createSidecarMedium } from 'use-sidecar';

export const effectCar = createSidecarMedium();
export const focusHiddenMarker = 'data-focus-on-hidden';
github theKashey / react-focus-lock / src / medium.js View on Github external
import { createMedium, createSidecarMedium } from 'use-sidecar';

export const mediumFocus = createMedium(
  {},
  ({ target, currentTarget }) => ({ target, currentTarget }),
);
export const mediumBlur = createMedium();

export const mediumEffect = createMedium();

export const mediumSidecar = createSidecarMedium({
  async: true,
});

use-sidecar

Sidecar code splitting utils

MIT
Latest version published 7 days ago

Package Health Score

83 / 100
Full package analysis