1.0.12 • Published 4 years ago

instatus-embed v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

instatus-embed

Web component to show/embed page status, using instatus api and swr

NPM JavaScript Style Guide

Install

npm install --save instatus-embed

Usage

import React, { Component } from 'react'

import { InstatusUptime } from 'instatus-embed'

class Example extends Component {
  render() {
    return (
      <InstatusUptime
        InstatusUrl="https://YOUR_SUBDOMAIN.instatus.com/summary.json"
        FailedMessage="failed to load"
        LoadingMessage="loading..."
        UpMessage="All System Operational"
        UpColor="#00ff00"
        HasIssuesMessage="Have some issues"
        HasIssuesColor="#ff0000"
        UnderMaintenanceMessage="Schedule Maintenance"
        UnderMaintenanceColor="#0000ff"
      />
    )
  }
}

License

MIT © petrolins

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago