@hypothesis/annotation-ui
v1.1.0
Published
UI components to simplify rendering Hypothesis annotation cards in Preact + Tailwind-based applications
Readme
@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-uitailwindcss 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';