Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 898 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 898 Bytes

ConfigPanel

Simple and extendable configuration panel for SvelteKit

Installation

Set up a SvelteKit project and install the ConfigPanel package along with the TailwindCSS configuration.

npm i -D @configpanel/panel @configpanel/tailwind-config

Tailwind setup

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';

Panel setup

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.