Skip to content

UI components to simplify rendering Hypothesis annotation cards in Preact + Tailwind-based applications

Notifications You must be signed in to change notification settings

hypothesis/annotation-ui

Repository files navigation

@hypothesis/annotation-ui

UI components to simplify rendering Hypothesis annotation cards in Preact + Tailwind-based applications.

Installation

Your project must have preact and tailwindcss as dependencies.

$ yarn add preact tailwindcss
$ yarn add @hypothesis/annotation-ui

tailwindcss configuration

Update your project's tailwind configuration:

export default {
  content: [
    // Be sure to add this project's component source to your
    // tailwind content globs
    './node_modules/@hypothesis/annotation-ui',
  ],
  // ...

Usage

import { MarkdownView, StyledText } from '@hypothesis/annotation-ui';

About

UI components to simplify rendering Hypothesis annotation cards in Preact + Tailwind-based applications

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •