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

18.5.6 • Public • Published

Internal autocomplete library for Paperclip

Demo:

import { getSuggestions } from "@paperclip-ui/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-ui/autocomplete

Weekly Downloads

108

Version

18.5.6

License

ISC

Unpacked Size

109 kB

Total Files

25

Last publish

Collaborators

  • crcn