paperclip-autocomplete
v18.3.8
Published
Internal Autocomplete helper util for language clients
Downloads
25
Readme
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;