UI components to simplify rendering Hypothesis annotation cards in Preact + Tailwind-based applications.
Your project must have preact
and tailwindcss
as dependencies.
$ yarn add preact tailwindcss
$ yarn add @hypothesis/annotation-ui
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',
],
// ...
import { MarkdownView, StyledText } from '@hypothesis/annotation-ui';