Skip to main content

calculateDividerStyles()

calculateDividerStyles(divider, computedStyles): Record<string, string>

Calculates the CSS styles needed for a divider element. Handles positioning, transforms, and sizing based on divider type and grid gaps.

Parameters

ParameterTypeDescription
dividerGridDividerInfoThe divider information
computedStylesCSSStyleDeclarationThe computed styles of the grid element

Returns

Record<string, string>

Object with CSS properties for the divider