Docs
Error Loader
Error Loader
Displays error info based on error type with title, description and footer.

Uh-oh! You are not connected!
To create post you must be connected ⚡️
Installation
pnpm dlx shadcn@latest add "https://akasha-ui.pages.dev/r/styles/default/error-loader.json"
Usage
import {
ErrorLoader,
ErrorLoaderDescription,
ErrorLoaderFooter,
ErrorLoaderTitle,
} from "<path-to-ui-components>/error-loader";
<ErrorLoader type="not-authenticated">
<ErrorLoaderTitle>Uh-oh! You are not connected!</ErrorLoaderTitle>
<ErrorLoaderDescription>
To create post you must be connected ⚡️
</ErrorLoaderDescription>
<ErrorLoaderFooter>
<Button>Connect</Button>
</ErrorLoaderFooter>
</ErrorLoader>
Props
Name | Type | Description |
---|---|---|
type | no-apps | No application found. |
not-authenticated | Not authenticated. | |
script-error | Script error. | |
page-not-found | 404 (page not found). | |
list-not-available | Data contains empty list. | |
publicImgPath | string | Path to public image folder. |