Skip to content

hypothesis/frontend-shared

Folders and files

NameName
Last commit message
Last commit date
Apr 25, 2025
Jun 20, 2023
May 2, 2023
Dec 2, 2024
Apr 28, 2025
Apr 14, 2025
May 6, 2025
Nov 28, 2023
May 16, 2023
Apr 23, 2025
Aug 29, 2022
May 2, 2023
Nov 19, 2024
Dec 2, 2024
Jun 20, 2023
Dec 2, 2024
Apr 23, 2025
May 20, 2024
Mar 10, 2021
May 6, 2025
Apr 23, 2025
May 6, 2025
Apr 23, 2025
Dec 2, 2024
Sep 27, 2023
Apr 25, 2025
May 6, 2025

Repository files navigation

@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