svelte-code-input
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

A Terminal Icon

svelte-code-input

A simple text input that emulates a code editor in the browser.

Installation

npm install svelte-code-input

Usage

<script>
  import CodeEditor from "svelte-code-input/CodeEditor.svelte"
  
  import { writable } from "svelte/store"
  
  const codeStore = writable("");
</script>

<label for="code">My Code Input</label>
<CodeEditor name="code" store={codeStore}/>

Contributing

Contributing docs in the works

/svelte-code-input/

    Package Sidebar

    Install

    npm i svelte-code-input

    Weekly Downloads

    0

    Version

    0.0.1

    License

    none

    Unpacked Size

    5.18 kB

    Total Files

    8

    Last publish

    Collaborators

    • stordahl_