Have ideas to improve npm?Join in the discussion! »

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

    1.0.0-beta.2 • 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>
    

    Install

    npm i @thorgate/spa-components

    DownloadsWeekly Downloads

    1,542

    Version

    1.0.0-beta.2

    License

    MIT

    Unpacked Size

    9.08 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar