Markdown
Panel
Settings
Put panel content here.
Examples
Section titled “Examples”<script> import { Panel } from '@soleil-se/config-svelte';</script>
<Panel heading="Settings"> <!-- Panel content --></Panel><script> import { Panel } from '@soleil-se/config-svelte';</script>
<Panel heading="Settings" expandable headingLevel="h3"> <!-- Panel content --></Panel>headingLevel defaults to the next heading level after its parent panel. Setting it explicitly overrides that nesting behavior.
| Prop | Type | Description |
|---|---|---|
heading | string | Panel heading. The default is localized to the document language. Default:Inställningar | Innstillinger | Settings |
required | boolean | Adds an asterisk to the heading to indicate that all fields inside are required. Default:false |
show | boolean | Shows or hides the panel without destroying it. Default:true |
expandable | boolean | Makes the panel collapsible. Default:false |
headingLevel | string | Overrides the heading element. By default, heading levels follow the panel nesting depth, up to |
class | string | CSS class added to the panel wrapper. |
children | Snippet | Content rendered inside the panel body. |
Content
Section titled “Content”Pass panel body content in the default Svelte snippet.