Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianeli1/control-panel-kit
React lib for creating control panels without any of React's innuendos
https://github.com/ianeli1/control-panel-kit
Last synced: about 2 months ago
JSON representation
React lib for creating control panels without any of React's innuendos
- Host: GitHub
- URL: https://github.com/ianeli1/control-panel-kit
- Owner: ianeli1
- Created: 2021-04-14T06:08:51.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T04:40:34.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T20:48:05.868Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# control-panel-kit
Let's you create a control panel very easily and without any complex React innuendos
### What you need
This library and the code the control panel is for!
### How do I use it
You'll need to import the library's main object, `ControlPanel`. It's a standard React object.
```ts
import { ControlPanel, PageArgs } from "control-panel-kit";const pages: PageArgs[] = [
{
title: "Name Of The Section",
icon: ,
elements: [
{
type: "integer", //optional, depends on what you're doing
name: "Some Number",
get() {
//code time!
},
set(x: number) {
//some more code
return 69; //don't forget to return the new value
},
//both get and set can be async
},
],
},
];function YourSite() {
return (
);
}
```### How does it look?
