https://github.com/lxsmnsyc/solid-error-overlay
Unstyled, dev error overlays for SolidJS
https://github.com/lxsmnsyc/solid-error-overlay
Last synced: about 2 months ago
JSON representation
Unstyled, dev error overlays for SolidJS
- Host: GitHub
- URL: https://github.com/lxsmnsyc/solid-error-overlay
- Owner: lxsmnsyc
- License: mit
- Created: 2022-01-05T08:11:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T09:20:48.000Z (over 2 years ago)
- Last Synced: 2025-04-08T16:54:28.826Z (2 months ago)
- Language: TypeScript
- Size: 1.03 MB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solid-error-overlay
![]()
> Unstyled, headless Error Overlay for SolidJS
[](https://www.npmjs.com/package/solid-error-overlay) [](https://github.com/airbnb/javascript)[](https://codesandbox.io/s/github/LXSMNSYC/solid-error-overlay/tree/main/examples/demo)
## Install
```bash
npm i solid-error-overlay
``````bash
yarn add solid-error-overlay
``````bash
pnpm add solid-error-overlay
```## Features
- Stack Trace - inspect the stack trace of the error
- Source Maps view - View the source code of the stack trace's origin, switch between compiled and original source
- Error Pagination - Capture multiple errors
- Global Errors - Capture unhandled global errors
- No Interruption - Display the overlay without interrupting the current page (only works for errors not originating from the component.)## Usage
### Simplest usage
```js
import { ErrorOverlay } from 'solid-error-overlay';handleError(error)}>
```
### Customization
The `` component is unstyled and headless, therefore it is highly customizable.
The internal structure of the component is as follows:
```jsx
```
Each of the components can be overriden through ``'s props:
```js
(
Previous
)}
{...overrides}
>
```
See the [demo](https://github.com/LXSMNSYC/solid-error-overlay/tree/main/examples/demo) for expanded use.
## License
MIT © [lxsmnsyc](https://github.com/lxsmnsyc)