Files
Compass/web/components/layout/spacer.tsx
2025-08-27 21:30:05 +02:00

9 lines
327 B
TypeScript

export function Spacer(props: { className?: string; w?: number; h?: number }) {
const { w, h, className } = props
const width = w === undefined ? undefined : w * 0.25 + 'rem'
const height = h === undefined ? undefined : h * 0.25 + 'rem'
return <div style={{ width, height, flexShrink: 0 }} className={className} />
}