mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 14:05:43 -05:00
20 lines
762 B
Markdown
20 lines
762 B
Markdown
---
|
|
title: Spacer
|
|
tags:
|
|
- plugin/component
|
|
---
|
|
|
|
This plugin renders a flexible spacer element that pushes adjacent components apart within a layout group. It uses CSS `flex: 2 1 auto` to fill available space, making it useful for spacing out items in toolbars or sidebars (for example, separating the search bar from the darkmode toggle in the left sidebar toolbar).
|
|
|
|
> [!note]
|
|
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
|
|
|
|
This plugin has no configuration options.
|
|
|
|
## API
|
|
|
|
- Category: Component
|
|
- Function name: `ExternalPlugin.Spacer()`.
|
|
- Source: [`quartz-community/spacer`](https://github.com/quartz-community/spacer)
|
|
- Install: `npx quartz plugin add github:quartz-community/spacer`
|