Live preview

Interactive example

Loading example…

Usage

Import the component, then make it your own.

ComponentSpacer

svelte

<script>
  // Import the shared stylesheet once in your application's root layout.
  import "sveltekit-ui/style.css"
  import { Spacer } from "sveltekit-ui"
</script>

<p>Account details</p>
<Spacer mt={2} mb={2} />
<p>Notification preferences</p>

API reference

Props accepted by the component.

8 entries in properties

PropertyTypeDefaultDescription
is_vertboolean falseDetermines whether the spacer is vertical (true) or horizontal (false).
mlnumber 0Margin left in rem.
mrnumber 0Margin right in rem.
mtnumber 0Margin top in rem.
mbnumber 0Margin bottom in rem.
swnumber 0.1Stroke width of the spacer's border in rem.
colorstring var(--shadow7-t)Color of the spacer's border.
min_lengthnumber 2Minimum length of the spacer in rem.