@actus/svelte
TypeScript icon, indicating that this package has built-in type declarations

2.3.2 • Public • Published

@actus/svelte

bar

Svelte UI component / bindings that uses the @actus/core state machine.

Component Usage

Install it in your Svelte project with:

npm install @actus/svelte

and import it

import Actus from '@actus/svelte'

As mentioned, it should be trivial to implement this in any UI framework, have a look in src/Component.svelte to see how it's made using Svelte.

All props except commands are optional.

<Actus
    {commands}
    toggleKey="p"
    ctrlKey={false}
    placeholder="Type your best commands"
    theme={{
        "--color": "rgba(212, 208, 199, 1.00)",
        "--result-description-color": "rgba(212, 208, 199, 1.00)",
        "--background-color": "rgba(36, 36, 36, 1.00)",
        "--active-result-background-color": "rgba(64, 64, 64, 1.00)",
        "--active-result-description-color": "rgba(255, 255, 255, 1.00)",
        "--active-result-title-color": "rgba(255, 255, 255, 1.00)",
        "--scale": "1.3",
    }}
/>

Demo

Here's a demo: https://ti99l.csb.app

/@actus/svelte/

    Package Sidebar

    Install

    npm i @actus/svelte

    Weekly Downloads

    0

    Version

    2.3.2

    License

    MIT

    Unpacked Size

    1.59 MB

    Total Files

    22

    Last publish

    Collaborators

    • oskarhane