0.0.4-alpha • Published 2 years ago

react-text-parts-selector v0.0.4-alpha

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TEXT PARTS SELECTOR COMPONENT (this is alpha version, do not recomended for production use)

DEMO on GitHub Pages

demo_screenshot

Call Preview

<TextPartsSelector
              style={{ width: '100%', overflowWrap: 'anywhere' }}
              affectedContent={paragraph}
              targetContent={sortQuoteList.map((q) => ({
                id: q.id,
                content: q.content,
                start: q.posBegin,
                end: q.posEnd,
                color: q.color,
              }))}
              setTargetContent={setTargetContent}
              // disabled={!selectedQuote}
              multiple={true}
              // {...(!selectedQuote ? { hoverQuote } : {})}
            />

TERMS OF REFERENCE FOR THE COMPONENT FOR SELECTING TEXT PARTS FROM Cyril mjr27:

Examples

I have not seen components with such functionality (logically, otherwise I would there was no such task). The closest thing I've found on jQuery:

Task:

...TODO...

0.0.4-alpha

2 years ago

0.0.3-alpha

2 years ago