@hypothesis/frontend-shared
TypeScript icon, indicating that this package has built-in type declarations

7.9.0 • Public • Published

@hypothesis/frontend-shared

UI components for Hypothesis front-end applications.

Installation

Your project must have preact and tailwindcss as dependencies.

$ yarn add preact tailwindcss
$ yarn add @hypothesis/frontend-shared

tailwindcss configuration

Update your project's tailwind configuration:

import tailwindConfig from '@hypothesis/frontend-shared/lib/tailwind.preset.js';

export default {
  // Use this package's preset
  presets: [tailwindConfig],
  content: [
    // Be sure to add this project's component source to your
    // tailwind content globs
    './node_modules/@hypothesis/frontend-shared/lib/**/*.{js,ts,tsx}',
  ],
  // ...

Documentation

Full documentation is available in this project's web-based pattern library.

  1. Run the local web server:
    $ make dev
  2. Visit http://localhost:4001/ in a browser

Usage

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

Additional dev documentation

Readme

Keywords

none

Package Sidebar

Install

npm i @hypothesis/frontend-shared

Weekly Downloads

438

Version

7.9.0

License

BSD-2-Clause

Unpacked Size

3.21 MB

Total Files

823

Last publish

Collaborators

  • robertknight
  • jenkins-hypothesis
  • lyzadanger
  • esanzgar