# SbSpacer A utility component for adding vertical or horizontal spacing between elements. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Size | SbSpacerSize | Medium | Size preset for the spacer | | Height | string? | null | Custom height (overrides Size) | | Width | string? | null | Custom width (for horizontal spacing) | | Grow | bool | false | Whether the spacer should grow to fill available space | | Class | string? | null | Additional CSS classes | ## SbSpacerSize Enum ```csharp public enum SbSpacerSize { ExtraSmall, // 0.25rem (4px) Small, // 0.5rem (8px) Medium, // 1rem (16px) Large, // 1.5rem (24px) ExtraLarge // 2rem (32px) } ``` ## CSS Classes - `sb-spacer` - Base class ## Accessibility - Uses `aria-hidden="true"` since it's a visual-only element ## Examples ### Basic Usage ```razor Title Some content with default spacing above. ``` ### Different Sizes ```razor
Content 1
Content 2 (4px gap)
Content 3
Content 4 (8px gap)
Content 5
Content 6 (24px gap)
Content 7
Content 8 (32px gap)
``` ### Custom Height ```razor First Card Second Card with custom 3rem gap ``` ### Horizontal Spacing ```razor Button 1 Button 2 ``` ### Growing Spacer (Push to End) ```razor Left Content Right Button ``` ### In Navigation Menu Use `SbSpacer Grow="true"` inside a vertical stack to push items to the bottom (e.g. in Wish theme's `WishSidebar` or `WishIconRail`): ```razor Dashboard Analytics Settings Help ``` ### Section Dividers ```razor Section 1 Content for section 1... Section 2 Content for section 2... Section 3 Content for section 3... ``` ### Footer Push Down ```razor
Header
Main Content
```