1.3.1 • Published 2 months ago

spcr-settings v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Settings Plugin

Supports both extensions and custom apps

Easily add settings to your apps

Getting Started

  1. Create a Spicetify Creator project
  2. yarn add spcr-settings

Preview

Preview

import { SettingsSection } from "spcr-settings";

async function main() {
  const settings = new SettingsSection("Settings Test", "settings-test");

  settings.addInput("your-name", "Input your name", "Foo");

  settings.addButton("button-1", "Press the button to get your name", "What's my name?", () => {
    Spicetify.showNotification(settings.getFieldValue("your-name") as string);
  });

  settings.addButton("button-2", "Press the button to randomize your name", "Randomize my name", () => {
    settings.setFieldValue("your-name", (Math.random() + 1).toString(36).substring(2));
    settings.rerender();
  });

  settings.addToggle("random-toggle", "A random toggle", true);
  
  settings.addDropDown("random-dropdown", "A random dropdown", ['Option 1', 'Option 2', 'Option 3'], 2);

  settings.addHidden("last-page-visited", "Page 1"); // Settings without UI

  settings.pushSettings();
}

export default main;
1.3.1

2 months ago

1.2.0

11 months ago

1.3.0

9 months ago

1.1.0

2 years ago

1.0.33

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago