The Loader
component is used to display a loading animation or spinner. It can be customized with additional class names for the container and the loader itself.
- Customizable classes: Allows customization of both the container and loader styles via
containerClassName
andloaderClassName
props. - Simple integration: Easy to add to any page or component where loading indication is required.
Prop Name | Prop Type | Default Value | Description |
---|---|---|---|
containerClassName |
string |
"" |
Custom class name for the loader container. |
loaderClassName |
string |
"" |
Custom class name for the loader element. |
import React from "react";
import Loader from "fdk-react-templates/components/loader/loader";
import "fdk-react-templates/components/loader/loader.css";
const App = () => (
<div>
<Loader containerClassName="custom-container" loaderClassName="custom-loader" />
</div>
);
export default App;
For any questions or feedback, please contact Sandeep Baikan at [email protected].