@thorgate/spa-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.4 • Public • Published

@thorgate/spa-components

Common components used with Thorgate project template SPA variant

Usage

import '@thorgate/spa-components/dist/message-panel.css';

import { PageError, Status } from '@thorgate/spa-components';


// Somewhere in the dom tree to render permission denied.
<PageError statusCode={403}>
    Very bad, you should not have come. Meow.
</PageError>

// Or use Status to create custom error component
<Status code={404}>
    Terribly sorry, I have lost what you are looking for.
</Status>

Dependents (3)

Package Sidebar

Install

npm i @thorgate/spa-components

Weekly Downloads

566

Version

1.0.0-beta.4

License

MIT

Unpacked Size

26.1 kB

Total Files

22

Last publish

Collaborators

  • thorgate-main
  • jyrno42
  • metsavaht