Skip to content

robertknight/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

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 52.8%
  • TypeScript 44.8%
  • CSS 1.6%
  • Makefile 0.8%