import { Box, Skeleton } from '@mui/material' import type { SxProps, Theme } from '@mui/material' const styles = { root: { display: 'flex', flexDirection: 'column', gap: 3, py: 1, }, item: { display: 'flex', flexDirection: 'column', gap: 1.5, }, track: { height: 32 }, inputsRow: { display: 'flex', gap: 2, }, input: { flex: 1, height: 40 }, } satisfies Record> export interface RangeSkeletonProps { count?: number } /** * Loading placeholder for the Range widget. Renders `count` rows, each * matching the slider-then-inputs layout of {@link RangeUI} so the layout * doesn't jump when data resolves. */ export function RangeSkeleton({ count = 1 }: RangeSkeletonProps) { return ( {Array.from({ length: count }).map((_, i) => ( ))} ) }