Skip to content

Component Name

An adjustable, empty space that can be used to tune the spacing between child elements.

// Import components
import {
Placeholder,
Spacer,
} from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/placeholder.css';
import '@fintech-sandpit/ui/style/components/spacer.css';
return (
<Placeholder className="flex no-wrap w-100 p-4">
<Placeholder className="w-20 h-20" />
<Spacer />
<Placeholder className="w-20 h-20" />
</Placeholder>
);
NameTypeDefaultDescription
wCssUnit—Minimum width of the spacer
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior
type CssUnit = `${number}${'px' | 'em' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax' | '%'}`