Class: Busy
Description:
The Busy
component renders a visual indicator of loading activity using the BallTriangle
animation from the react-loading-icons
library. This component is intended to be displayed when the application is performing an asynchronous operation and needs to provide feedback to the user that something is happening.
Methods
Method: Busy
Description: This is the main function of the component, accepting props and returning a JSX element representing the busy state.
Parameters:
props
(Object
): A set of props that can be passed to the component.- (Optional)
className
(string
): An optional custom class name to apply to thediv
element. Defaults to "busy". - (Optional)
stroke
(string
): An optional color value to override the default stroke color of theBallTriangle
animation. Defaults to "#26de81".
- (Optional)
Returns:
JSX.Element
: A JSX element that renders adiv
element containing aBallTriangle
loading animation.
Example:
import Busy from './Busy';
// Render the Busy component with default props
<Busy />
// Render the Busy component with a custom className and stroke color
<Busy className="my-busy-indicator" stroke="#ff0000" />