paperclip-autocomplete
TypeScript icon, indicating that this package has built-in type declarations

18.3.8 • Public • Published

Internal autocomplete library for Paperclip

Demo:

import { getSuggestions } from "paperclip-complete";

let source = `<style> .element { col`;

const suggestions = getSuggestions(source, {
  mixins: [["typography", "big-font"]],
  components: [["internal-component"]],
  classNames: [["typography", "my-imported-class"]]
}); // [{ sub: 3, value: "color" }]


const suggestion = suggestions[0];

source = source.substr(0, source.length - suggestion.length) + suggestion.value;

Readme

Keywords

none

Package Sidebar

Install

npm i paperclip-autocomplete

Weekly Downloads

3

Version

18.3.8

License

ISC

Unpacked Size

108 kB

Total Files

25

Last publish

Collaborators

  • crcn