@actus/svelte
v2.3.2
Published
![bar](images/bar.png)
Downloads
21
Readme
@actus/svelte
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