Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Repository files navigation

Kernel Settings

Simple settings module for kernel with an API out of the box.

Interface

interfaceSettingsSection{section: "DIVIDER"|"CUSTOM"|string;element?(): React.ReactElement;label?: string;id?: string;className?: string;}interfaceSectionOptions{render(): React.ReactElement;className?: string;}interfaceKernelSettings{/** * Registers a tab in the settings section below "Kernel". * @param name Represents the name of the tab, will also be the label. * @param render Render/Options for the tab. See {@link SettingsOptions} */register(name: string,render: (()=>React.ReactElement)|SectionOptions): ()=>boolean;/** * Represents all registered panels. */panels: SettingsSection[];privateinitialize(): void;}

Usage

KernelSettings.register("MyAwesomeTab",()=><p>Hi :p</p>);// orKernelSettings.register("MyAwesomeTab",{render: ()=><p>Hi :p</p>,className: "my-className-will-be-visible-in-dom"});

About

Gives you a settings UI for kernel.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages