• Stars
    star
    244
  • Rank 165,885 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A React component to add annotations to any element on a page πŸ₯”

react-tater πŸ₯”

A React component to add annotations to any element on a page

Screenshot

NPM

Install

yarn add react-tater

Usage

import React from 'react';
import Tater from 'react-tater';
import YourElement from './your-element';

const taterOptions = {
  name: 'your-element-1', // The namespace used for local storage
  space: 30 // The size, in pixels, of the grid and emojis
};

const App = () => (
  <>
    <Tater options={taterOptions}>
      <YourElement /> {/* any element you want to annotate */}
    </Tater>
  </>
);

Development

If you want to make changes to this library in a local development environment, first you need to symlink some packages:

cd ../example-app/node_modules/react && yarn link
cd react-tater && yarn link && yarn link react
cd ../example-app && yarn link react-tater

This allows you to see changes to this package immediately in your example app and prevents the example app from seeing more than one copy of React.

Then start the dev server which will build the module and watch for changes to automatically rebuild:

cd react-tater && yarn start

Then add import Tater from 'react-tater'; to your example project to use it.

To run tests:

cd react-tater && yarn test

Or:

cd react-tater && yarn test:watch

More Repositories

1

exercise-starter

A starter template for TDD JavaScript exercises, code katas, and interviews
JavaScript
28
star
2

shell-loader

A Webpack loader that runs an arbitrary script on matching files
JavaScript
21
star
3

awesome-text-only-news

19
star
4

trivia-demo

A trivia app demo using React, TypeScript, Redux, React Router, React Transition Group and Jest
JavaScript
14
star
5

ethereum-app-demo

A simple app to demo what's possible with Ethereum.
JavaScript
13
star
6

react-rainbow-ascii

A React component for generating responsive rainbow ASCII art from text 🌈
TypeScript
10
star
7

CalendarMapApp

TypeScript
10
star
8

quotable-wp

A WordPress plugin that adds buttons to quotes and text selection that make it quick and easy for your readers to share quotes from your website.
PHP
9
star
9

code-samples

Links to samples of my work
TypeScript
6
star
10

quotable-toolbar

πŸ“’ A library to add buttons to quotes and text selection that make it quick and easy for your readers to share quotes from your website.
TypeScript
5
star
11

resume

High impact senior software engineer with a passion to make the world a better place!
CSS
4
star
12

sanfrancisco-streetfood

A demo street food map using React, TypeScript and Mapbox GL
TypeScript
2
star
13

hungarian-automator-workflows

Some Automator workflows for quickly translating between Hungarian and English on macOS
1
star
14

calendar-copier

An AppleScript to copy events from one calendar to another
AppleScript
1
star
15

localjo.github.io

My portfolio website
TypeScript
1
star
16

layers-search

Demo of a fast layer search component for Worldview built in React.
JavaScript
1
star