ActivityIndicator
Component
Is a React component that displays a loading animation on the screen. It can be used to indicate that the content is being loaded or processed in the background. The user does not interact directly with the *ActivityIndicator* component, it is usually displayed as an overlay or within a container.
Source
View source code
Package
@codeleap/web
Props
Example Usage
import { ActivityIndicator } from "@codeleap/web";function App() {return (<div><h1>Loading Example</h1><ActivityIndicator size={30} />{/* or */}<ActivityIndicator component={CustomLoader} size={40} /></div>);}
In the example above, the ActivityIndicator component is rendered inside the App component. It is displayed with a size of 30 pixels. Optionally, a custom loader component CustomLoader can be provided to render the loading animation instead of the default one, with a size of 40 pixels.