Skip to content

Placeholder

The Placeholder component displays a content placeholder with customizable size and height.

A placeholder block
// Import component
import { Placeholder } from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/placeholder.css';
return (
<Placeholder
variant="solid"
className="h-20"
>
A placeholder block
</Placeholder>
);
NameTypeDefaultDescription
variantPlaceholderVariantsubtleVariant of the placeholder
type PlaceholderVariant = 'subtle' | 'solid'