--- import type { SlDivider } from '@shoelace-style/shoelace'; import type { HTMLAttributes } from 'astro/types'; interface Props extends Omit, Partial> { /** * Draws the divider in a vertical orientation. */ vertical?: boolean; /** * Allows customization of the sl-divider CSS without the user having to build a custom style tag */ cssVars?: { /** * The width of the divider * @default var(--sl-panel-border-width) */ dividerwidth?: string; /** * The color of the divider * @default var(--sl-color-gray-200) */ dividercolor?: string; /** * The spacing of the divider * @default var(--sl-spacing-medium) */ dividerspacing?: string; } } const { vertical, cssVars, ...rest } = Astro.props; const dividerwidth = cssVars?.dividerwidth || "var(--sl-panel-border-width)"; const dividercolor = cssVars?.dividercolor || "var(--sl-color-gray-200)"; const dividerspacing = cssVars?.dividerspacing || "var(--sl-spacing-medium)"; ---