Loading
A Loading component is a UI element that indicates to users that a process is ongoing, such as data fetching, page loading, or background tasks. It typically features visual indicators like spinners, progress bars, or animated icons to convey that the application is busy and to enhance the user experience by preventing confusion or frustration during waiting periods.
Rendered live, with the same build of the library you install.
Loading.tsx
import { NLoading } from '@nayan-ui/react';const Loading = () => {return (<div><div className="flex items-center gap-4"><NLoading size="sm" /><NLoading size="md" /><NLoading size="lg" /></div></div>);};export default Loading;
| Name | Type | Default | Details |
|---|---|---|---|
| className | string | ' ' | You can customise by passing tailwind classes. |
| aria-label | string | Optional | ARIA label for accessibility. |
| size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Size of the loading spinner. |
| color | 'current' | 'accent' | 'success' | 'warning' | 'danger' | 'current' | Color of the loading spinner. |
Other components solving nearby problems.
- React Loading
- Loading Component for React
- React Spinner
- React Loader
- React Loading Indicator
- Custom Loading in React
- React Loading Animation
- Asynchronous Loading in React
- React Loading Placeholder
- Progress Indicator in React
- React Loading Overlay
- React Skeleton Loader
- Loading State in React
- React Spinner Component
- Loading UI for React
- Lightweight React Loader
- Responsive Loading in React
- React Circular Loader
- React Linear Loader
- React Progress Bar