import type { NullableBounds } from "@solid-primitives/bounds"; import { colors, font } from "../../../.storybook/ui/index.js"; export const BoundsGrid = (props: { bounds: NullableBounds }) => (
{(["top", "left", "bottom", "right", "width", "height"] as const).map(key => (
{key} {props.bounds[key] !== null ? `${Math.round(props.bounds[key]!)}px` : "—"}
))}
);