# Spacer — SvelteKit UI

Package: sveltekit-ui 1.1.94

Page: https://www.sveltekit-ui.com/components/spacer

Category: Foundations

A customizable spacer component for adding vertical or horizontal space with optional decorative borders.

Public component import: `Spacer`

## Usage

```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>
```

## Properties

### `is_vert`

- type: boolean
- default: false
- description: Determines whether the spacer is vertical (true) or horizontal (false).

### `ml`

- type: number
- default: 0
- description: Margin left in rem.

### `mr`

- type: number
- default: 0
- description: Margin right in rem.

### `mt`

- type: number
- default: 0
- description: Margin top in rem.

### `mb`

- type: number
- default: 0
- description: Margin bottom in rem.

### `sw`

- type: number
- default: 0.1
- description: Stroke width of the spacer's border in rem.

### `color`

- type: string
- default: var(--shadow7-t)
- description: Color of the spacer's border.

### `min_length`

- type: number
- default: 2
- description: Minimum length of the spacer in rem.
