Simple and extendable configuration panel for SvelteKit
Set up a SvelteKit project and install the ConfigPanel package along with the TailwindCSS configuration.
npm i -D @configpanel/panel @configpanel/tailwind-config
ConfigPanel uses TailwindCSS for styling. To make everything work as intended, re-export the Tailwind configuration in your tailwind.config.ts
file:
export { default } from '@configpanel/tailwind-config';
To set up the ConfigPanel, import the Navigation
component in your src/routes/+layout.svelte
file:
<script lang="ts">
import { Navigation } from '@configpanel/panel';
let { children } = $props();
</script>
<Navigation nav={[]} />
{@render children}
That's it! You can now start adding your configuration pages.