Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hypothesis/frontend-shared

Package Overview
Dependencies
Maintainers
0
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hypothesis/frontend-shared

Shared components, styles and utilities for Hypothesis projects

  • 8.15.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
681
decreased by-35.69%
Maintainers
0
Weekly downloads
 
Created
Source

@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

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc