A component that renders single or grouped placeholder stripes with optional opacity animations and grid layout. Useful for loading states or content placeholders.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props Properties
|
- Since
- 4.5.0
A placeholder component with configurable stripes and layout
- Type:
- JSX.
Element
// Single placeholder
<Placeholder height="20px" width="50%" animated={true} />
// Grid of placeholders
<Placeholder gridCount={3} spacing={4} />
// Grouped placeholders
<Placeholder
groupData={[
{ gridCount: 2, height: '20px' },
{ gridCount: 3, height: '15px', animated: false }
]}
/>