SvelteInfo

A Svelte Component to show info about Svelte Components
About

Show information about the properties of a Svelte component. Designed to simplify the creation of documentation - WIP

NPM link: @el3um4s/svelte-component-info

I recommend using it with el3um4s/svelte-get-component-info

How to use
To import the package in a project:
npm i -D @el3um4s/svelte-component-info
To use in a file:
<script>

import { SvelteInfo } from "@el3um4s/svelte-component-info";

</script>

<SvelteInfo
  • { name }
  • { description }
  • { info }
  • { urlPackage }
>

<div slot="about" > Named slot </div>

<div slot="demo" > Named slot </div>

<div slot="test" > Named slot </div>

</SvelteInfo>
Props
CSS Variables
Tests