@hypothesis/frontend-shared

Shared components, styles and utilities for Hypothesis projects

Usage no npm install needed!

<script type="module">
  import hypothesisFrontendShared from 'https://cdn.skypack.dev/@hypothesis/frontend-shared';
</script>

README

Shared resources for Hypothesis front-end applications

A package of resources for Hypothesis front-end applications.

Requirements

Your project must have Preact installed as a dependency.

npm install --save preact

Usage

$ npm install @hypothesis/frontend-shared --save

SASS

To add styles for all shared components to your project's SASS:

@use '@hypothesis/frontend-shared/styles';

In JS

import { SvgIcon } from '@hypothesis/frontend-shared';

Additional documentation