Spacer
The spacer is a layout component to render an empty shape.
Import
Importimport { Spacer } from '@backyard-ui/core';Usage
UsageSize
SizeUse the size prop to increase the visual size.
Change axis
Change axisUse the axis prop to render horizontal or vertical.
Responsive
ResponsiveYou can make it responsive by passing array or object values into the size prop.
API Reference
API Reference- sizeDescription The Spacer sizeType
ResponsiveValue<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | ... 6 more ... | "3.5">Default1 - axisDescription The CSS `width` or `height` propertyType
"horizontal" | "vertical"Defaulthorizontal