Hoppa till innehåll

Panel

Panel

PropTypeDescription
headingstringPanel heading.
Default: 'Inställningar'
requiredbooleanMarks heading with an asterisk to indicate that all fields are required inside.
Default: false
showbooleanShow and hide the component without re-rendering.
Default: true
expandablebooleanMakes the panel collapsible.
Default: false
headingLevelnumberAllows custom heading levels for the panel, h1 to h6.
<script>
import { Panel } from '@soleil-se/config-svelte';
</script>
<Panel heading="Inställningar">
<!-- Panel content -->
</Panel>
<script>
import { Panel } from '@soleil-se/config-svelte';
</script>
<Panel heading="Inställningar" expandable headingLevel="h3">
<!-- Panel content -->
</Panel>

Default slot for panel body.