Enhance your web applications with the dynamic Shimmer Table Component, available in light and dark modes with customizable sizes.
Shimmer Table Light Mode
<ShimmerTable mode="light" row={7} col={5} border={1} borderColor={"#cbd5e1"} rounded={0.25} rowGap={16} colPadding={[10, 5, 10, 5]} />
Shimmer Table Dark Mode
<ShimmerTable mode="dark" row={7} col={5} border={1} borderColor={"#374151"} rounded={0.25} rowGap={16} colPadding={[10, 5, 10, 5]} />
Shimmer Table Custom Mode
<ShimmerTable mode="custom" row={7} col={5} border={1} borderColor={"#374151"} rounded={0.25} rowGap={16} colPadding={[10, 5, 10, 5]} />
Shimmer Table Loading Mode
<ShimmerTable
loading={loading}
mode="light"
row={7}
col={5}
border={1}
borderColor={"#cbd5e1"}
rounded={1}
rowGap={16}
colPadding={[10, 5, 10, 5]}
>
<table style={{ borderCollapse: "collapse", width: "100%" }}>
<tbody>
{[...Array(7)].map((_, rowIndex) => (
<tr key={rowIndex} style={{ height: "40px" }}>
{[...Array(5)].map((_, colIndex) => (
<td
key={colIndex}
style={{
border: "1px solid #cbd5e1",
borderRadius: "0.25em",
padding: "10px 5px",
textAlign: "center",
}}
>
Col {colIndex}
</td>
))}
</tr>
))}
</tbody>
</table>
</ShimmerTable>
Properties
Property | Type | Required | Default value | Description |
---|---|---|---|---|
row | number | Yes | - | The number of rows in the table. |
col | number | Yes | - | The number of columns in the table. |
border | number | No | 1 | The border width of the table. |
borderColor | string | No | - | The border color of the table. |
rounded | number | No | 0.1em | The border radius of the table. |
rowGap | number | No | 14px | The gap between rows in the table. |
colPadding | number[] | No | [10px, 5px, 10px, 5px] | The padding of each column in the table. |
loading | boolean | No | true | Whether the table is in a loading state. |
children | ReactElement | No | - | Element to load after loading false |
mode | "light" | "dark" | "custom" | Yes | - | The mode of the table (light, dark, or custom). |
from, via, to | string | Yes (for mode "custom") | - | The colors used in custom mode. |
Take it further
Take full advantage of React Shimmer Effect by experimenting with its extensive features and customization options
React Shimmer Button
A React component adding a shimmer effect to buttons for loading states.
React Shimmer Div
Enhance div elements with a shimmering loading animation using this React component.
React Shimmer Title
Apply a stylish shimmer effect to titles while content loads with this React component.
React Shimmer Text
A React component that provides a shimmering effect to text elements during loading.
React Shimmer Section Header
Give section headers a shimmering loading effect with this React component.
React Shimmer Category Items
A React component for adding a shimmer effect to category items while loading.
React Shimmer Content Block
Display shimmering placeholders for content blocks during data loading with this React component.
React Shimmer Bar Chart
Add a loading shimmer effect to bar charts with this customizable React component.
Previous
Content BlockNext
Bar Chart